A TCP/IP socket server object for Visual Basic

Wrap up

Download

Note that because the socket server uses IO Completion Ports it will only work on Windows NT/2000/XP. Windows 9x is not supported.

The following source was built using Visual Studio 6.0 SP5 and Visual Studio .Net. You need to have a version of the Microsoft Platform SDK installed

All of the zip files mentioned can be found in the single zip file attached to this article.

  • COMSocketServer.dll - The socket server COM object
  • COMSocketServer2.zip - The source code to the above COM object
  • COMSocketServerClient.zipCOMSocketServerClient.zip - a VB echo server
Revision history

  • 11th June 2002 - Initial revision.
  • 18th June 2002 - Removed call to ReuseAddress() during the creation of the listening socket as it not required - Thanks to Alun Jones for pointing this out to me.

You might also like...

Comments

About the author

Len Holgate United Kingdom

Len has been programming for over 20 years, having first started with a Sinclair ZX-80. Now he runs his own consulting company, JetByte Li...

Interested in writing for us? Find out more.

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Perl - The only language that looks the same before and after RSA encryption.” - Keith Bostic