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
Information Exchange
[email=direwolf@digitalfiends.com]Dire Wolf[/email]
www.digitalfiends.com
www.digitalfiends.com
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement