Talk:SDL:Tutorial:Using SDL net
From GDWiki
[edit] Same
Well, !strcmp() is the same of strcmp() == 0. Also the "logic errors" were wanted. No need to change them - but this works, so ok...
[edit] Single-user server??
The example would be much more helpful if it were a multi-user server. A multiplayer online game is not going to just accept one connection, receive messages from it, and then close the connection - it is going to have multiple users connection, disconnecting, and sending messages all the time, and it needs to handle this. The example is good for learning how to create a connection, send and receive packets, and close the connection, but it doesn't even show the send and receive methods used for a multi-user server (non-blocking).
[edit] SDLNet_Init() and SDL_Init()
From doc. by Jon C Atkins: int SDLNet_Init(); "Initialize the network API. This must be called before using other functions in this library. SDL must be initialized before this call" So why in your example there is no initialization of SDL ( SDL_Init(); ) ??

