Original Post
here is a winsock tutorial written on gamedev.net:
http://www.gamedev.net/reference/programming/features/ws2games/page4.asp
everything seemed to work except for a few problems:
Under accepting the connections
client[number_of_clients] =
accept (s, client_sock[number_of_sockets], &addr_size);
Well, addr_size wasn''t declared in the example. It is reasonable to assume that the author may have expected the reader to do it himself, but someone new to the topic may not know what data type it is.
Also, the second argument should be a sockaddr*, so it should be set to &client_sock[number_of_sockets].
Under the else section of that code
startThread (client[number_of_clients]);
What is that? I have no clue. It isn''t a function defined in . It either is in another header file (which I dont have...I already grepped for it...), or it is one he defined and didn''t tell the reader.
Can someone tell me what it means?