-
Winsock in VB.NET
Hi every body
I am new in vb2005, and need some help.
In order ro connect two applications with each other,I used to use Winsock control in vb6.
So my questions are:
1-Can I use Winsock in vb2005?and how?
2-what is the class responsible for making connection between two applications?and how I can use it?(I found a lot of information in MSDN about sockets class but didn't understand a lot of things?
Thanks in advance:)
-
Re: Winsock in VB.NET
Welcome to the forums. :wave:
You can not use a VB6 control in VB.NET
Here is an alternative.
-
Re: Winsock in VB.NET
Altough the class that Hack showed will work, I would actually recommend learning how TCP connectivity in .Net works rather than using pre-made components.
The two main classes you will use are System.Net.Sockets.TcpListener and System.Net.Sockets.TcpClient, the first one provides the server functionallity, listening to a specified port. The second one provides the client functionally, that is connecting to a remote IP.
Heres a good thread to read through.
-
Re: Winsock in VB.NET
Thaks you Hack and Atheist for your helps