Jump to content
  • Advertisement
Sign in to follow this  
SelethD

Really Simple Socket Question

This topic is 5399 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Im new at working with sockes and multiplayer, but im trying to make a small MUD. When a User connects to ther server, the server gets a FD_ACCEPT message. Then in the user setup area after connecting, it gives you 3 tries to get your name and password correct. If you cant do it, I want the Server to close your connection. However I want it to close the connection in a way that the Users connection will send the Server a FD_CLOSE message I tried this... shutdown(sock, SD_SEND); closesocket(sock); and it disconnected the User, but did not send my server the FD_CLOSE message so my server still showed the User as being connected. Any one know how to do this?

Share this post


Link to post
Share on other sites
Advertisement
Ok, im stupid. It was updating the Server that the User had disconnected, I just wasnt updating the Window of the Server, where it was displaying how many connections. :P

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!