VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



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

by Dan Violet Sagmiller (2 Submissions)
Category: Complete Applications
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (3 Votes)

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
Code 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

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

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

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

No comments have been posted about COMPLETE Client & Server Application with winsock (only 50 lines of code) tons of clear Comments. Why not be the first to post a comment about COMPLETE Client & Server Application with winsock (only 50 lines of code) tons of clear Comments.

Post your comment

Subject:
Message:
0/1000 characters