Method | Description | |
---|---|---|
CanRead ( Socket socket ) : bool | ||
CanWrite ( Socket socket ) : bool | ||
ClearReadBuffer ( Socket socket ) : void | ||
Connect ( |
||
IsErrorResumable ( SocketError socketError ) : bool | ||
Read ( Socket socket, byte buffer, int offset, int size, System.TimeSpan timeout ) : int |
Receives data from a bound Socketinto a receive buffer. If no data is available for reading, the Read(Socket,byte[], int, int, TimeSpan) method will block until data is available or the time-out value was exceeded. If the time-out value was exceeded, the Read(Socket,byte[], int, int, TimeSpan) call will throw a SshOperationTimeoutException. If you are in non-blocking mode, and there is no data available in the in the protocol stack buffer, the Read(Socket,byte[], int, int, TimeSpan) method will complete immediately and throw a SocketException. |
|
ReadByte ( Socket socket, System.TimeSpan timeout ) : int |
Reads a byte from the specified Socket.
|
|
ReadContinuous ( Socket socket, byte buffer, int offset, int size, Action |
||
ReadPartial ( Socket socket, byte buffer, int offset, int size, System.TimeSpan timeout ) : int | ||
Send ( Socket socket, byte data ) : void | ||
Send ( Socket socket, byte data, int offset, int size ) : void | ||
SendByte ( Socket socket, byte value ) : void |
Sends a byte using the specified Socket.
|
Method | Description | |
---|---|---|
ConnectCompleted ( object sender, |
||
ReceiveCompleted ( object sender, |
||
SendCompleted ( object sender, |
public static CanRead ( Socket socket ) : bool | ||
socket | Socket | |
return | bool |
public static CanWrite ( Socket socket ) : bool | ||
socket | Socket | |
return | bool |
public static ClearReadBuffer ( Socket socket ) : void | ||
socket | Socket | |
return | void |
public static Connect ( |
||
remoteEndpoint | ||
connectTimeout | System.TimeSpan | |
return | Socket |
public static IsErrorResumable ( SocketError socketError ) : bool | ||
socketError | SocketError | |
return | bool |
public static Read ( Socket socket, byte buffer, int offset, int size, System.TimeSpan timeout ) : int | ||
socket | Socket | |
buffer | byte | An array of type |
offset | int | The position in |
size | int | The number of bytes to receive. |
timeout | System.TimeSpan | Specifies the amount of time after which the call will time out. |
return | int |
public static ReadByte ( Socket socket, System.TimeSpan timeout ) : int | ||
socket | Socket | The |
timeout | System.TimeSpan | Specifies the amount of time after which the call will time out. |
return | int |
public static ReadContinuous ( Socket socket, byte buffer, int offset, int size, Action |
||
socket | Socket | |
buffer | byte | |
offset | int | |
size | int | |
processReceivedBytesAction | Action |
|
return | void |
public static ReadPartial ( Socket socket, byte buffer, int offset, int size, System.TimeSpan timeout ) : int | ||
socket | Socket | |
buffer | byte | |
offset | int | |
size | int | |
timeout | System.TimeSpan | |
return | int |
public static Send ( Socket socket, byte data ) : void | ||
socket | Socket | |
data | byte | |
return | void |
public static Send ( Socket socket, byte data, int offset, int size ) : void | ||
socket | Socket | |
data | byte | |
offset | int | |
size | int | |
return | void |
public static SendByte ( Socket socket, byte value ) : void | ||
socket | Socket | The |
value | byte | The value to send. |
return | void |