Question about networking in VB

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I've come from the VB 6.0 world where, when I wanted to make a client/server
applet, I'd use the built-in Winsock ActiveX control. Now I'm trying to move
on to Visual Basic .Net (if that is, indeed, what comes with Visual Studio
2005). I've noticed that there isn't a corresponding Winsock-like control
for creating network applets that use non-standard TCP/IP-based protocols
(such as HTTP or FTP). So my question is simply how do I create a
client/server application which uses a custom TCP/IP-based protocol? Or is
that simply not the way developers do things these days....
 
I think you will find a much more robust library that what we had in VB 6 in
the System.Net.Sockets namespace.

There are examples all over the web from complex to mundane.

Check out TCPClient, TCPListener
 
=?Utf-8?B?U3RldmVuIERhdmlkc29u?=
So my
question is simply how do I create a client/server application which
uses a custom TCP/IP-based protocol? Or is that simply not the way
developers do things these days....


Take a look at System.Net Namespace. The socket classes (HTTP, TCP, SMTP)
are in there. FTP and other protocols will require custom code (i.e. manual
socket parsing) or a 3rd party component.

Or you could us WCF, Remoting, or Web Services.
 
Back
Top