WinSock Control

Properties

Now lets take a look at the available properties of the WinSock control... all of them are explained in the table below:

Property Description
BytesReceived The total number of bytes received since you connected to the Server or Client
LocalHostName The name of the PC you are running the program on
LocalIP The IP address of the PC you are running the program on
LocalPort The Port to listen to when the Listen method is called
Protocol The Protocol to use (TCP or UDP)
RemoteHost The name of the remote PC you are connected to
RemoteHostIP The IP address of the remote PC you are connected to
RemotePort The remove port which you will attempt to connect to using the Connect method
SocketHandle Returns the handle of the Socket. You can pass this to WinSock API calls
State Returns the State of the connection.
 

You might also like...

Comments

About the author

James Crowley

James Crowley United Kingdom

James first started this website when learning Visual Basic back in 1999 whilst studying his GCSEs. The site grew steadily over the years while being run as a hobby - to a regular monthly audien...

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.

“To iterate is human, to recurse divine” - L. Peter Deutsch