Information Exchange

Started by
9 comments, last by Fractile81 22 years, 4 months ago
Also I noticed another thing about your code:

int Client::Send(char *c)
{
if(send(s, c, strlen(c), 0) == SOCKET_ERROR) return 0;
// s here is the socket that the client is using

return 1;
}


You are calling strlen(c). I sure hope that what c points to is a NULL terminated string. If not strlen(c) will return unpredictable results.

Dire Wolf
www.digitalfiends.com
[email=direwolf@digitalfiends.com]Dire Wolf[/email]
www.digitalfiends.com

This topic is closed to new replies.

Advertisement