Networking in games?

Zenith
Unregistered
 
Post: #16
Quote:Originally posted by OneSadCookie
Sockets are good, there's lots of sample code.

where's all this sample code!? Sad
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #17
beej's guide is a great place to start, but just about everyone and their dog has a tutorial on socket programming. It's particularly good because the Windows socket API is almost identical, just a couple of different includes and a couple of extra restrictions.

Searching Google should turn you up heaps of stuff -- don't look for mac-specifics, in order of preference: BSD, Linux, Windows, but all should be helpful.
Quote this message in a reply
lpetrich
Unregistered
 
Post: #18
On a related subject, is it possible to debug a networked app on one machine if one is running OSX?

The idea would be to create two instances and have one of them connect to the other -- all inside the same machine. One would have to use some special Internet address for connecting to oneself, of course. Something like 127.0.0.1 (nowhere.loopback.edu).

Is that feasible? Has anyone here ever tried that?
Quote this message in a reply
Member
Posts: 370
Joined: 2002.04
Post: #19
Of course it's possible - either have your client connect to localhost (which is 127.0.0.1) or (only if your protocol is text) use telnet to type commands.

Did you ever wonder why we had to run for shelter when the promise of a brave new world unfurled beneath the clear blue sky?
Quote this message in a reply
Member
Posts: 304
Joined: 2002.04
Post: #20
Quote:Originally posted by lpetrich
On a related subject, is it possible to debug a networked app on one machine if one is running OSX?
The idea would be to create two instances and have one of them connect to the other -- all inside the same machine.

check out the uDevGame entry "RoboHunt." After you d/l it - make a copy - start both copies - set one up as the server - and connect from the other copy. Neato.
Quote this message in a reply
lpetrich
Unregistered
 
Post: #21
Quote:Originally posted by codemattic
check out the uDevGame entry "RoboHunt." After you d/l it - make a copy - start both copies - set one up as the server - and connect from the other copy. Neato.
URL, please? I looked for it, and I couldn't find it.
Quote this message in a reply
Member
Posts: 304
Joined: 2002.04
Post: #22
Quote this message in a reply
Post Reply