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