Click to See Complete Forum and Search --> : Can anyone provide a simple connected UDP client/server example?


ekhule
May 1st, 2009, 08:58 AM
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.

xander_tan
May 3rd, 2009, 11:14 AM
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.

Owyn
May 16th, 2009, 03:09 PM
yup, it would be interesting, i want to write something like that too