🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Question about the send() command.
What does the first argument in the send( , , ) command mean? I know it is a socket, but I''m not sure whose socket it is. Is it the senders socket, or is it the receivers socket? And if it is the senders socket, how can I choose to which receiver it sends the data to? And how can I send the data to multiple people if I can''t put the receivers socket in the send() command?
If you''re doing TCP/IP, it is the person who should recieve the packet''s socket. If you''re using UDP/IP, it is the sender''s socket. For UDP/IP you should use sendto, which has two extra parameters, one being the person to recieve the message.
![Resist Windows XP''s Invasive Production Activation Technology!](http://druidgames.warfactory.com/Out_Source/resist.jpg)
http://druidgames.cjb.net/
![Resist Windows XP''s Invasive Production Activation Technology!](http://druidgames.warfactory.com/Out_Source/resist.jpg)
http://druidgames.cjb.net/
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement