Search Tools Links Login

COMPLETE Client & Server Application with winsock (only 50 lines of code) tons of clear Comments

Posted: 2002-06-01
By: ArchiveBot
Viewed: 71

Filed Under:

Visual Basic 6

Title Uploaded Size
COMPLETE 9/3/2020 3:45:00 PM 7,796

This gives a complete, Error-Correcting, Client and server to demonstrate communications via winsock. You may substitute the CLient program for any Telnet application.

The telnet Server has only 22 lines of code, which does include error correction for any text based connections.

The Client App has only 28 lines of code, with complete commenting and explataions for why errors arise, not just that they do show up.

Original Author: Dan Violet Sagmiller


On the running applications, the server wil want a port number.

the client will want the port and the Address(incase you don't know it, strecth out the server form, and it will tell you that)


The code should also work on VB5, I spotted nothing altered between versions as far as this code goes, however I have ONLY tested this in VB6


There are no returns, Only usage

Side Effects

If the program is killed unformaly it may leave the port tied up for a few minutes. Nothing that important.

Comments on this post

No comments have been added for this post.

You must be logged in to make a comment.