Property | Type | Description | |
---|---|---|---|
Created | System.DateTime |
Method | Description | |
---|---|---|
Close ( ) : void |
This method closes the underlying stream and socket.
|
|
Dispose ( ) : void |
Disposing of a PooledSocket object in any way causes it to be returned to its SocketPool.
|
|
PooledSocket ( |
||
Read ( byte bytes ) : void |
Fills the given byte array with data from the socket.
|
|
ReadLine ( ) : string |
Reads from the socket until the sequence '\r\n' is encountered, and returns everything up to but not including that sequence as a UTF8-encoded string
|
|
ReadResponse ( ) : string |
Reads a response line from the socket, checks for general memcached errors, and returns the line. If an error is encountered, this method will throw an exception.
|
|
Reset ( ) : bool |
Resets this PooledSocket by making sure the incoming buffer of the socket is empty. If there was any leftover data, this method return true.
|
|
SkipUntilEndOfLine ( ) : void |
Reads from the socket until the sequence '\r\n' is encountered.
|
|
Write ( byte bytes ) : void |
Writes an array of bytes to the socket and flushes the stream.
|
|
Write ( string str ) : void |
Writes a string to the socket encoded in UTF8 format.
|
public PooledSocket ( |
||
socketPool | ||
endPoint | ||
sendReceiveTimeout | int | |
return | System |