C# Класс Enyim.Caching.Memcached.PooledSocket

Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
InstanceId System.Guid

Открытые методы

Метод Описание
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 ( IPEndPoint endpoint, System.TimeSpan connectionTimeout, System.TimeSpan receiveTimeout, System.TimeSpan keepAliveStartDelay, System.TimeSpan keepAliveInterval ) : System
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 ( AsyncIOArgs p ) : bool

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 buffers ) : void
Write ( byte data, int offset, int length ) : void

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Приватные методы

Метод Описание
CheckDisposed ( ) : void
ConfigureKeepAlive ( Socket socket, System.TimeSpan keepAliveStartFrom, System.TimeSpan keepAliveInterval ) : void
ConnectWithTimeout ( Socket socket, IPEndPoint endpoint, int timeout ) : void
IDisposable ( ) : void

Описание методов

Destroy() публичный Метод

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.
public Destroy ( ) : void
Результат void

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

PooledSocket() публичный Метод

public PooledSocket ( IPEndPoint endpoint, System.TimeSpan connectionTimeout, System.TimeSpan receiveTimeout, System.TimeSpan keepAliveStartDelay, System.TimeSpan keepAliveInterval ) : System
endpoint System.Net.IPEndPoint
connectionTimeout System.TimeSpan
receiveTimeout System.TimeSpan
keepAliveStartDelay System.TimeSpan
keepAliveInterval System.TimeSpan
Результат System

Read() публичный Метод

Reads data from the server into the specified buffer.
This method blocks and will not return until the specified amount of bytes are read.
public Read ( byte buffer, int offset, int count ) : void
buffer byte An array of that is the storage location for the received data.
offset int The location in buffer to store the received data.
count int The number of bytes to read.
Результат void

ReadByte() публичный Метод

Reads the next byte from the server's response.
This method blocks and will not return until the value is read.
public ReadByte ( ) : int
Результат int

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.
public ReceiveAsync ( AsyncIOArgs p ) : bool
p AsyncIOArgs
Результат bool

Reset() публичный Метод

public Reset ( ) : void
Результат void

Write() публичный Метод

public Write ( IList buffers ) : void
buffers IList
Результат void

Write() публичный Метод

public Write ( byte data, int offset, int length ) : void
data byte
offset int
length int
Результат void

Описание свойств

InstanceId публичное свойство

The ID of this instance. Used by the T:MemcachedServer to identify the instance in its inner lists.
public Guid,System InstanceId
Результат System.Guid