🎉 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.

Started by
1 comment, last by IronFist 23 years, 1 month ago
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?
Play Sumasshu, which is a game I programmed. CLICK HERE
Advertisement
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.cjb.net/
Ok, thanks. I''m using TCP/IP.

This topic is closed to new replies.

Advertisement