winzip icon

Simple, clean client/server socket controls (includes docs and chat demo)

Email
Submitted on: 1/7/2015 7:14:00 AM
By: James Vincent Carnicelli (from psc cd)  
Level: Intermediate
User Rating: By 24 Users
Compatibility: VB 4.0 (32-bit), VB 5.0, VB 6.0, VB Script, ASP (Active Server Pages)
Views: 1077
 
     This is a set of controls designed to make creating TCP/IP client/server applications very easy. There's a single-connection client control and a server socket bank that automatically manages connections from clients. There are even discrete listener and server sockets, if you want to implement your own socket bank. This is all in an OCX and delivered with a tiny chat client/server program to demonstrate how easy it is to use. (The OCX source is included.)

While the client adds only a little functionality (and a lot of stability) to the basic Winsock control's methodology, the server socket bank offers the huge advantage of dealing with listening for incomming connections and managing them for you, a notoriously tedious and sometimes hazardous task.

These sockets controls even make dealing with sending and receiving binary data easier than with the Winsock control. They have their own internal receive buffers, which you can pick apart at your own pace as plain text or byte arrays. You can switch back and forth in mid-stream, too.

ASP/VBScript programmers should find these components useful, since you don't have to trap the events from the client socket to use it.

Perhaps the best thing about this package is that it includes extensive documentation in HTML files, which includes an introduction, explanation about how to apply them including code samples, and a complete reference for each control.

This OCX is a culmination of many years of work trying to create a suite of controls more stable and easy to use than MS's Winsock control. It's been tested out for a while by many users here. A few have recommended changes I've implemented. Otherwise, the requests I'm getting now are for minor feature changes. The package seems to be working well for those using it. I welcome your further comments and suggestions.

Please vote for my hard work if you like these components.

---- Recent Updates ----

  • 21 June 2000: Added documentation and new features.
  • 26 June 2000: Bug fixes and added tutorial to help.
  • 30 October 2000: You asked for it. ZIP now includes the OCX's source.
  • 16 November 2000: Changed Port properties from Integer to Long.

  •  
    winzip iconDownload code

    Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
    1. Re-scan downloaded files using your personal virus checker before using it.
    2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
    3. Scan the source code with Minnow's Project Scanner

    If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com


    Other 20 submission(s) by this author

     


    Report Bad Submission
    Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
    This submission should be removed because:

    Your Vote

    What do you think of this code (in the Intermediate category)?
    (The code with your highest vote will win this month's coding contest!)
    Excellent  Good  Average  Below Average  Poor (See voting log ...)
     

    Other User Comments


     There are no comments on this submission.
     

    Add Your Feedback
    Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
     

    To post feedback, first please login.