Host-client stuff?

Andry
02-10-2002, 07:31 AM
I'm designing a game that I'd like to run online somewhat.
What I plan on doing is having all the players log-on using a client version of the game, meanwhile at home my system being the host, running all the major code and file-swapping with my players/clients.
I have experience programming host/client type stuff on normal networks but not over phone lines.
What do I need in order to accomplish this?
What keywords should I use in VB Help to bring up material concerning the code I'll need to learn?
Are there any servers that offer a bit of free space, so I might be able to test online?
Or perhaps even the keywords so I can look up help on establishing a direct modem->modem connection for testing.

When I made multi-user apps for my school network instead of writing to the computer HD, I wrote to the servers, and people just accessed files back and forth.
I would use a line like this:
Open "X:\AllShared\chat.txt" for input as #1
blah blah blah, right...
Is there anyway to communicate directly to an IP?
(This may sound weird, I have no idea what I'm talking about)
But I mean just like how I plugged in the Shared drive path..
example...
Open "IP:169.45.766.42\C:\InputFromHere" for input as #1
(^^^I know there may be no such thing, just giving you an idea of what I'm thinking about.)

If anyone can help me with this that would be beyond awesome.

Banjo
02-10-2002, 07:37 AM
If you are using DirectX for your game then have a look at the DirectPlay component of it.

If not then you will need to use the Winsock control. You can find details in MSDN and there are some examples in the Tutor's Corner and Code Library of this site.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum