Jump to content

  • Log In with Google      Sign In   
  • Create Account


Beginning multiplayer programming


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 Tank2k   Members   -  Reputation: 122

Like
Likes
Like

Posted 26 September 1999 - 11:13 AM

I would like to know what options are available for a person
who wants to start to learn multi-player programming, but only
has access to one computer?

Is there something available that can emulate networking or
perhaps loop back information on one computer?

-Tank2k


Sponsor:

#2 Sphet   Members   -  Reputation: 631

Like
Likes
Like

Posted 24 September 1999 - 01:11 PM

Tank2k,

Almost all implementations of TCP/IP have a loopback address. This address is most commonly "localhost", or 127.0.0.1. Give it a try; ping localhost, and it should work fine. This is the best tool for testing on single machines. I don't know what the issues involving testing DirectPlay might be, but for those of us who write network applications, localhost works great. You can run the server, and then run multiple clients and connect to localhost:port, and it works fine. As for multi-player games that operate without a server, but open connections to each of the other players, you'd have to be able to set each instance of your program to be able to use a different port. It isn't hard. Don't forget though that the packet speed is going to be much slower in real-world implementations.

As an aside, the loopback mechanism was used (and still is) for inter-process communication in some applications.


#3 Tank2k   Members   -  Reputation: 122

Like
Likes
Like

Posted 26 September 1999 - 11:13 AM

Thanks! This is turning out to be easier than I expected,
even though I spent about an hour trying to figure out how to
download the winsock2 update from Microsoft's website.

It's here if anyone wants it: http://www.microsoft.com/windows95/downloads/contents/wuadmintools/s_wunetworkingtools/w95sockets2/default.asp

You know it worked when you see WS2_32.DLL in your Windows
Systems directory. It's only for Windows 95, BTW.

-Tank2k





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS