CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Threaded View

  1. #1
    Join Date
    Oct 2004
    Posts
    35

    Single UDP socket, multiple connections

    I'm coding a game server query for UT2004 and I have my program sending a server-info query via UDP to about a dozen servers.

    I have one single UDP socket sending all the data at the same time just fine, and Ethereal shows me all the servers are sending query results back...BUT it appears that I need to create multiple sockets, one set for each server IP, so that I can receive the data in the code.

    What I originally attempted to do was have just one UDP socket, receiving all data from each different IP....however this only works for sending and not receiving, does anyone know how I could do that? (perhaps a special socket option?)

    Thanks.


    EDIT: I know the topic name is a bit misleading, as UDP doesn't use 'connections'.
    Last edited by Shambler; May 23rd, 2006 at 08:57 AM.

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