Board index » Visual Studio » accept() and SOCK_DGRAM
|
jagaman
|
|
jagaman
|
accept() and SOCK_DGRAM
Visual Studio266
From my tests I can see that accept() is not called when using SOCK_DGRAM, only when using SOCK_STREAM, when creating the SOCKET. How can you make sure the connection is established in SOCK_DGRAM before you start trying to send data? - |
| Jochen
Registered User |
Tue Sep 20 09:17:46 CDT 2005
Re:accept() and SOCK_DGRAM
Hi aaa!
QuoteFrom my tests I can see that accept() is not called when using SOCK_DGRAM, The difference between stream and datagram is the a stream is "connection-oriented" and a datagram is not... Therefor a datagram will never have a connection... this also implies that messages might get lost... -- Greetings Jochen My blog about Win32 and .NET blog.kalmbachnet.de/">blog.kalmbachnet.de/ - |
