CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2009
    Posts
    166

    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.

  2. #2
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    47

    Re: Can anyone provide a simple connected UDP client/server example?

    Quote Originally Posted by ekhule View Post
    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.
    Xander Tan

  3. #3
    Join Date
    May 2009
    Posts
    140

    Re: Can anyone provide a simple connected UDP client/server example?

    yup, it would be interesting, i want to write something like that too

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured