Can anyone provide a simple connected UDP client/server example?
Hello,
Can anyone provide a simple connected UDP client/server example? When I try to call connect() it returns winsock error 10038 which is WSAENOTSOCK, " Socket operation on non-socket. An operation was attempted on something that is not a socket. The specified socket parameter refers to a file, not a socket"
Regards,
Ellay K.
Re: Can anyone provide a simple connected UDP client/server example?
Quote:
Originally Posted by
ekhule
Hello,
Can anyone provide a simple connected UDP client/server example? When I try to call connect() it returns winsock error 10038 which is WSAENOTSOCK, " Socket operation on non-socket. An operation was attempted on something that is not a socket. The specified socket parameter refers to a file, not a socket"
Regards,
Ellay K.
For the example, you can check any of these:
http://www.tenouk.com/Winsock/Winsock2example9.html
or
http://www.codeproject.com/KB/IP/udptime.aspx
Some people here might be interested to help you if you share your codes.
Re: Can anyone provide a simple connected UDP client/server example?
yup, it would be interesting, i want to write something like that too