ISocket Interface
Namespace: Rebex.Net
Assembly: Rebex.Networking.dll (version 7.0.9448)
Defines a generalized socket API.
Syntax
public interface 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). |
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(Int32, SocketSelectMode) | Determines the status of the socket. |
| Receive(Byte[], Int32, Int32, SocketFlags) | Receives the specified amount of data from the connected ISocket into a specific location of the receive buffer and using the supplied flags. |
| Send(Byte[], Int32, Int32, SocketFlags) | Sends the specified amount of data to the connected ISocket starting at the indicated location in the data and using the supplied flags. |
| Shutdown(SocketShutdown) | Disables sends and receives on the ISocket. |