PDA

Click to See Complete Forum and Search --> : LAN Games


manic_gofar
Jun 19th, 2001, 07:26 AM
does anyone know how to create a game which can connect to the same game on another machine over a LAN i'm not talking an advanced game just a simple 'tick' game but that is still beyond me (not creating the game the connecting and interacting with another machine), thanks in advance.

plenderj
Jun 19th, 2001, 09:34 AM
Well you'd just stick a winsock control into both sides of the app.
The server side listens, and the client side connects.

Once the connection has been established, you do your own little handshaking protocol, and let the games commence :)

Sastraxi
Jun 19th, 2001, 02:48 PM
You can use the computer's name as the remotehost property.

manic_gofar
Jun 21st, 2001, 03:27 AM
thanks, a big help

Jotaf98
Jun 22nd, 2001, 03:23 AM
If you're interested in using more types of connections, you can use DIrectPlay if you're using DIrectX ;)