Skip to main content
GameDev.net gamedev.net
🔒 Locked

A few Networking question...

Started by Slug Aug 8, 2005 at 12:31 PM 3 replies 800+ views
Original Post
Slug
Slug
Hi, i've flipped some page from a winsock book, and i still have a few question to ask cause i'm not sure i got it all... 1st: How can i know when a connection is etablished??? did the call to listen of connect block itself 'till it connect or did i must check a message in my msg loop??? 2nd: How can i know if the other side of the connection is still conected and dosen't have crash, reboot or something like that??? 3rd: Did there is a way to send window message instead of data??? Thnx in advance to anyone who can help me!
Yann L
Yann L
And how exactly does this relate to OpenGL ? Moved to GP.
__filip
__filip
1) From MSDN:
"On a blocking socket, the return value indicates success or failure of the connection attempt." (0=connected). For non-blocking sockets follow the link to MSDN.

2) You check the value returned by recv(). Read more here

3) what??
Slug
Slug
thx for you're reply. For the 3rd question, i was wondering if it was possible to send window message like WM_LBUTTONDOWN instead of data...
pex22
pex22
a window message is simply a DWORD (0x0???).
convert the DWORD to data and send it.
pex.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.