The ISocket type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| Close |
Forces the ISocket connection to close.
| |
| Connect(EndPoint) |
Establishes a connection to a remote device.
| |
| Connect(String, Int32) |
Establishes a connection to a remote device.
| |
| Poll |
Determines the status of the socket.
| |
| Receive |
Receives the specified amount of data from the connected ISocket into a specific location of the receive buffer and using the supplied flags.
| |
| Send |
Sends the specified amount of data to the connected ISocket starting at the indicated location in the data and using the supplied flags.
| |
| Shutdown |
Disables sends and receives on the ISocket.
|
Properties
| Name | Description | |
|---|---|---|
| Connected |
Gets a value that indicates whether the ISocket is connected to a remote host as of the last Send or Receive operation.
| |
| LocalEndPoint |
Gets the local endpoint.
| |
| RemoteEndPoint |
Gets the remote endpoint.
| |
| Timeout |
Gets or sets the length of time in milliseconds before the operation times out (specify -1 or 0 to indicate that the request does not time out which is default).
|