ISocket Interface
Namespace: Rebex.Net
Assembly: Rebex.Networking.dll (version 7.0.9147)
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. |
Local |
Gets the local endpoint. |
Remote |
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(End |
Establishes a connection to a remote device. |
Connect(String, Int32) | Establishes a connection to a remote device. |
Poll(Int32, Socket |
Determines the status of the socket. |
Receive(Byte[], Int32, Int32, Socket |
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, Socket |
Sends the specified amount of data to the connected ISocket starting at the indicated location in the data and using the supplied flags. |
Shutdown(Socket |
Disables sends and receives on the ISocket. |