In this web address
http://www.ktthome.com/auxiliar/Client_Server.zip You can download the file Client_Server.zip containing 3 programs: Client.exe (Visual Basic), Server.exe (Visual Basic) and client_server (Visual C + + 6) for Windows XP.
To communicate VB <-> VB:
1. Writing in Server.exe: Port = 50000 (for example), and press [Listen]. The server is ready to accept client connections.
2. Writing in Client.exe: Server = 127.0.0.1 and Port = 50000 and press [Connect]. It establishes the connection to the server.
3. Now you can send messages between client and server
A. Client: write Text2 = AAAAA and press [send]
B. Server: write Text2 = BBBBB and press [send]
To communicate VC + + <-> VC + +:
1. Open twice program client_server.exe
2. In the first mark in Socket Type option Server, write in Server Port = 50000 and press [Listen]. The server is ready to accept connections.
3. In the second, marking Socket Type option Client, write in Name Server = 127.0.0.1, Server Port = 50000 and press [Connect]. It provides connection to the server.
4. Now you can send messages between client and server
5. Client: write Message = AAAAA and press [send]
6. Server: writw Message = BBBBB and press [send]
To communicate VB (client) <-> VC + + (server)
1. Open client_server.exe program, marking Socket Type option Server, write in Server Port = 50000 and press [Listen]. The server is ready to accept connections.
2. Open program Client.exe: Server = 127.0.0.1 and Port = 50000 and press [Connect]. It establishes the connection to the server.
3. Now you can send messages between client and server
4. Client: write Text2 = FFFFF and press [send]
5. Server: Message = BBBBB write and press [send]
Now you may wonder if the connection for Windows XP is possible
1. VB (client) <-> Gamestudio (server)
2. VC + + (client) <-> Gamestudio (Server)
If you have a clear answer, I would like to try it with VB (client) and VC + + (server) that I have sent