Question about networking in VB

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....
 
A

amdrit

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
 
G

Guest

=?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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top