Jump to content
  • Advertisement
Sign in to follow this  
muster

tcp way

This topic is 4031 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

hello guys. I wanna know what is the preferred way that i can do in the following case: I'm making a very small MMORPG that uses TCP connection coded in C#. Lets say if i want to send an action to the server in order to let the server broadcast it, should i connect to the server send the action over this specific action port and disconnect or should i keep a connected port for actions and split the messages received in the network stream? tnx in advance...

Share this post


Link to post
Share on other sites
Advertisement
Quote:

...a very small MMORPG...


The first 'M' stands for 'Massive'. You are making a multiplayer RPG [smile]. Not every game has to be called a MMORPG [grin].


The TCP three way handshake is expensive enough that if you can avoid it, you should. I recommend keeping the connection open.

Share this post


Link to post
Share on other sites
Quote:
Original post by rip-off
Quote:

...a very small MMORPG...


The first 'M' stands for 'Massive'. You are making a multiplayer RPG [smile]. Not every game has to be called a MMORPG [grin].


The TCP three way handshake is expensive enough that if you can avoid it, you should. I recommend keeping the connection open.


tnx for the help alot i guess u r right, and the small may become massive someday :P. And another thing, how can i make serialization?

Share this post


Link to post
Share on other sites
How about trying a Google for the word "serialization" and some other word that pertains to your particular need?

The added benefit of keeping a TCP connection open is that you can detect when players disconnect/crash, because the TCP connection goes away. It's also hard for clients to get notified about updates to world state they want to display if they don't already have an open connection to listen to.

Share this post


Link to post
Share on other sites
Quote:
Original post by hplus0603
How about trying a Google for the word "serialization" and some other word that pertains to your particular need?

The added benefit of keeping a TCP connection open is that you can detect when players disconnect/crash, because the TCP connection goes away. It's also hard for clients to get notified about updates to world state they want to display if they don't already have an open connection to listen to.


ok

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!