C# Class Enyim.Caching.Memcached.Protocol.Binary.BinaryNode

A node which is used by the BinaryPool. It implements the binary protocol's SASL auth. mechanism.
Inheritance: MemcachedNode
Mostrar archivo Open project: couchbaselabs/EnyimMemcached

Public Methods

Method Description
BinaryNode ( IPEndPoint endpoint, ISocketPoolConfiguration config, ISaslAuthenticationProvider authenticationProvider ) : System

Protected Methods

Method Description
CreateSocket ( IPEndPoint endpoint, System.TimeSpan connectionTimeout, System.TimeSpan receiveTimeout ) : PooledSocket

Creates a new socket then authenticates it before putting it into the pool.

Private Methods

Method Description
Auth ( PooledSocket socket ) : bool

Implements memcached's SASL auth sequence. (See the protocol docs for more details.)

Method Details

BinaryNode() public method

public BinaryNode ( IPEndPoint endpoint, ISocketPoolConfiguration config, ISaslAuthenticationProvider authenticationProvider ) : System
endpoint System.Net.IPEndPoint
config ISocketPoolConfiguration
authenticationProvider ISaslAuthenticationProvider
return System

CreateSocket() protected method

Creates a new socket then authenticates it before putting it into the pool.
protected CreateSocket ( IPEndPoint endpoint, System.TimeSpan connectionTimeout, System.TimeSpan receiveTimeout ) : PooledSocket
endpoint System.Net.IPEndPoint
connectionTimeout System.TimeSpan
receiveTimeout System.TimeSpan
return PooledSocket