Property | Type | Description | |
---|---|---|---|
InstanceId | System.Guid |
Method | Description | |
---|---|---|
Destroy ( ) : void |
Releases all resources used by this instance and shuts down the inner T:Socket. This instance will not be usable anymore. Use the IDisposable.Dispose method if you want to release this instance back into the pool. |
|
PooledSocket ( |
||
Read ( byte buffer, int offset, int count ) : void |
Reads data from the server into the specified buffer. This method blocks and will not return until the specified amount of bytes are read. |
|
ReadByte ( ) : int |
Reads the next byte from the server's response. This method blocks and will not return until the value is read. |
|
ReceiveAsync ( |
Receives data asynchronously. Returns true if the IO is pending. Returns false if the socket already failed or the data was available in the buffer. p.Next will only be called if the call completes asynchronously.
|
|
Reset ( ) : void | ||
Write ( IList |
||
Write ( byte data, int offset, int length ) : void |
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Method | Description | |
---|---|---|
CheckDisposed ( ) : void | ||
ConfigureKeepAlive ( Socket socket, System.TimeSpan keepAliveStartFrom, System.TimeSpan keepAliveInterval ) : void | ||
ConnectWithTimeout ( Socket socket, |
||
IDisposable ( ) : void |
public PooledSocket ( |
||
endpoint | ||
connectionTimeout | System.TimeSpan | |
receiveTimeout | System.TimeSpan | |
keepAliveStartDelay | System.TimeSpan | |
keepAliveInterval | System.TimeSpan | |
return | System |
public Read ( byte buffer, int offset, int count ) : void | ||
buffer | byte | An array of |
offset | int | The location in buffer to store the received data. |
count | int | The number of bytes to read. |
return | void |
public Write ( byte data, int offset, int length ) : void | ||
data | byte | |
offset | int | |
length | int | |
return | void |