Rated
Read 76,512 times
Contents
Downloads
Related Categories
A TCP/IP socket server object for Visual Basic - Overview
Overview
Although socket based TCP/IP servers using IO Completion Ports are often written in C++ it's sometimes useful to write such a server in Visual Basic. You can use the Winsock control for this, but it deals with the Windows Sockets interface at a very low level and you have to write lots of VB code. This article presents a simple COM object that wraps the high performance socket server framework that we developed in the previous article. The COM object provides a simple, yet powerful, interface that allows you to easily construct high performance TCP/IP servers with a minimal amount of VB code.
The article presents the Socket Server COM object and a simple sample VB server application and describes how you use the COM object. The next article will deal with how the COM object was constructed and the design decisions and coding of the object itself. Please note that this object can only be used on Windows NT/2000/XP it does not support Windows 9x.
Len has been programming for over 20 years, having first started with a Sinclair ZX-80. Now he runs his own consulting company, JetByte Limited.
JetByte provides contract programming and consultancy services. We can provide experience in COM, Corba, C++, Windows NT and UNIX. Our speciality is the design and implementation of systems but we are happy to work with you throughout the entire project life-cycle. We are happy to quote for fixed price work, or, if required, can work for an hourly rate.
We are based in London, England, but, thanks to the Internet, we can work 'virtually' anywhere...
Comments
-
Posted by rossduncan on 11 May 2006
I ran the server on one machine and the client on another and managed to get a connection and send some data. However after sending a few test messages "1234567890" I try and receive as string at the ...
Posted by Len Holgate on 18 Sep 2005
There was a stupid precedence error in the original code, this may be related to it?
LPOLESTR pOle = ((_lpa = (char*)m_pData) == NULL) ? NULL : ATLA2WHELPER((LPWSTR) alloca(m_length + 1*2), _lpa, m...
Posted by Len Holgate on 18 Sep 2005
I'm afraid I don't have a free version of this code that includes client support.
Posted by Len Holgate on 18 Sep 2005
Yes. -
Posted by oromano on 19 May 2004
may I use this library for a client application? do you have another dll to do this (with vb6)? great job
|