Jump to content
  • Advertisement
Sign in to follow this  
AuZ

In game chat

This topic is 4039 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Right, I have a multiplayer version of bomberman (2D) working quite well, and I would like to create an online chat thing to go with it. Now I have a little problem of theory here. Say I am using port number X to connect to the other person with a UDP connection (for moves...), Am I allowed to create a TCP connection on the same port to carry my chat data ? It may sound very newbish (apologies...) but how would you go about creating an online chat built in within an application ? Thanks in advance.

Share this post


Link to post
Share on other sites
Advertisement
I'd just send the message through the same UDP socket, and work out a simple reliable message system, nothing complicated.

Share this post


Link to post
Share on other sites
Ports are just arbitrary numbers and they're specific to the protocol in question. Therefore TCP port 1234 and UDP port 1234 are entirely unrelated. So you can use the same port number for both if you like, but there's no benefit or penalty for doing so.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!