VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

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

Dan Violet Sagmiller  (2 Submissions)   Complete Applications   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

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.

Inputs
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)

Assumes
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

Returns
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.

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

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

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

No comments yet — be the first to post one!

Post a Comment

0/1000 characters