Connecting programs

Started by
1 comment, last by GameDev.net 24 years, 7 months ago
There are two ways that I normally use, depending on the setup:

1) local net: Use the winsock library (some parts of it should've been named "winsuck", but in general its ok, and fairly straigtforward to use)

2) internet: If you're dealing with firewalls, HTTP is the only real way to go. It requires an HTTP server on the remote machine, and either ASP, PHP or a server plugin (all of which are easy to do, though it may sound very technical).

In the socket-case, the remote machine creates a socket, and listens for incomming connections. The client makes a connection (specifying e.g. the server IP address and port number). The rest is simple I/O..

In the HTTP case, I'd recommend Java for the Client if at all possible. Otherwise you'll need some kind of library supporting HTTP (possibly the IE Active X control from MS).

Hope I haven't send you off on a wild goose chase

/NJ

<b>/NJ</b>
Advertisement
I have been working on a program that performs several actions and then it is supposed to connect to someone else's computer and see if they have the program running also. If the other computer does have the program, then they will send a few bits of info back and forth. Can anyone help me out on how to do this. I have the program done all except for the part where they contact each other and tell each other their info. Thanks!!!!!!
I was wondering if there was an easy, simple way to use modems to connect 2 computers to each other in DOS. If there is what is it and how do I use it? I'm trying to make a simple DOS version of Hyper Terminal. Hyper Terminal is too irratating and I like using my own programs.

Thanx

This topic is closed to new replies.

Advertisement