C# 클래스 Enyim.Caching.Memcached.Protocol.Text.TextSocketHelper

파일 보기 프로젝트 열기: xianrendzw/LightFramework.Net 1 사용 예제들

공개 메소드들

메소드 설명
GetCommandBuffer ( string value ) : IList>

Gets the bytes representing the specified command. returned buffer can be used to streamline multiple writes into one Write on the Socket using the M:Enyim.Caching.Memcached.PooledSocket.Write(IList<ArraySegment<byte>>)

The Nagle algorithm is disabled on the socket to speed things up, so it's recommended to convert a command into a buffer and use the M:Enyim.Caching.Memcached.PooledSocket.Write(IList<ArraySegment<byte>>) to send the command and the additional buffers in one transaction.

GetCommandBuffer ( string value, IList list ) : IList>
ReadResponse ( PooledSocket socket ) : string

Reads the response of the server.

비공개 메소드들

메소드 설명
ReadLine ( PooledSocket socket ) : string

Reads a line from the socket. A line is terninated by \r\n.

메소드 상세

GetCommandBuffer() 공개 정적인 메소드

Gets the bytes representing the specified command. returned buffer can be used to streamline multiple writes into one Write on the Socket using the M:Enyim.Caching.Memcached.PooledSocket.Write(IList<ArraySegment<byte>>)
The Nagle algorithm is disabled on the socket to speed things up, so it's recommended to convert a command into a buffer and use the M:Enyim.Caching.Memcached.PooledSocket.Write(IList<ArraySegment<byte>>) to send the command and the additional buffers in one transaction.
public static GetCommandBuffer ( string value ) : IList>
value string The command to be converted.
리턴 IList>

GetCommandBuffer() 공개 정적인 메소드

public static GetCommandBuffer ( string value, IList list ) : IList>
value string
list IList
리턴 IList>

ReadResponse() 공개 정적인 메소드

Reads the response of the server.
The server did not sent a response or an empty line was returned. The server did not specified any reason just returned the string ERROR. - or - The server returned a SERVER_ERROR, in this case the Message of the exception is the message returned by the server. The server did not recognize the request sent by the memcachedClient. The Message of the exception is the message returned by the server.
public static ReadResponse ( PooledSocket socket ) : string
socket PooledSocket
리턴 string