Shambler
May 23rd, 2006, 08:55 AM
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'.
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'.