C# 클래스 Griffin.Net.Protocols.Http.HttpMessageEncoder

Used to encode request/response into a byte stream.
상속: IMessageEncoder
파일 보기 프로젝트 열기: jgauffin/Griffin.Framework 1 사용 예제들

공개 메소드들

메소드 설명
Clear ( ) : void

Remove everything used for the last message

HttpMessageEncoder ( ) : System

Initializes a new instance of the HttpMessageEncoder class.

OnSendCompleted ( int bytesTransferred ) : bool

The previous IMessageEncoder.Send has just completed.

true if the message have been sent successfully; otherwise false.

Prepare ( object message ) : void

Are about to send a new message

Can be used to prepare the next message. for instance serialize it etc.

Send ( ISocketBuffer buffer ) : void

Buffer structure used for socket send operations.

메소드 상세

Clear() 공개 메소드

Remove everything used for the last message
public Clear ( ) : void
리턴 void

HttpMessageEncoder() 공개 메소드

Initializes a new instance of the HttpMessageEncoder class.
public HttpMessageEncoder ( ) : System
리턴 System

OnSendCompleted() 공개 메소드

The previous IMessageEncoder.Send has just completed.
true if the message have been sent successfully; otherwise false.
public OnSendCompleted ( int bytesTransferred ) : bool
bytesTransferred int
리턴 bool

Prepare() 공개 메소드

Are about to send a new message
Can be used to prepare the next message. for instance serialize it etc.
Message is of a type that the encoder cannot handle.
public Prepare ( object message ) : void
message object Message to send
리턴 void

Send() 공개 메소드

Buffer structure used for socket send operations.
public Send ( ISocketBuffer buffer ) : void
buffer ISocketBuffer /// Do note that there are not buffer attached to the structure, you have to assign one yourself using /// . This choice was made /// to prevent unnecessary copy operations. ///
리턴 void