C# 클래스 System.ServiceModel.Http2Protocol.Http2Protocol

HTTP2 protocol.
상속: IDisposable
파일 보기 프로젝트 열기: MSOpenTech/HTTP-SPEED-PLUS-MOBILITY 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Version short

공개 메소드들

메소드 설명
Close ( StatusCode reason, int lastSeenStreamId ) : void

Initiates the Http2 close handshake.

Connect ( ) : bool

Initializes connection to the remote host.

SendData ( Http2Stream stream, System.ServiceModel.Http2Protocol.ProtocolData data, bool isFin ) : void

Sends the data.

SendGoAway ( int lastSeenStreamId, StatusCode reason ) : void

Sends the GoAway stream.

SendHeaders ( Http2Stream stream, ProtocolHeaders headers, bool isFin ) : void

Sends the headers.

SendPing ( int streamId ) : void

Sends the ping.

SendRST ( Http2Stream stream, StatusCode reason ) : void

Sends the RST.

SendRST ( int streamId, StatusCode reason ) : void

Sends the RST.

SendSettings ( Http2Stream stream ) : void
SendSynReply ( Http2Stream stream ) : void
SendSynStream ( Http2Stream stream, ProtocolHeaders headers, bool isFin ) : void

Sends the syn stream request.

SendWindowUpdate ( Http2Stream stream, Int64 windowAddition ) : void

Sends the window update request.

SendWindowUpdate ( int streamId, Int64 windowAddition ) : void

Sends the window update request.

SendWindowUpdate ( int deltaSize, int streamId ) : void

Sends the WindowUpdate frame.

SetProcessors ( List processors ) : void

Sets the frames processors.

비공개 메소드들

메소드 설명
ApplyProtocolSelectionResults ( string selectedProtocol ) : void
CloseInternal ( StatusCode reason, int lastSeenStreamId, bool sendGoAway ) : void

Closes connection to the remote host.

CreateSocketByUri ( Uri uri ) : SecureSocket
Dispose ( ) : void
FillBuffer ( byte buffer, int filledBytesCount ) : bool

Fills the given buffer with bytes.

HandshakeFinishedHandler ( object sender, EventArgs args ) : void
Http2Protocol ( SecureSocket socket, IStreamStore streamsStore, ProtocolOptions options ) : System.Collections.Generic
Http2Protocol ( Uri uri, IStreamStore streamsStore ) : System.Collections.Generic

Initializes a new instance of the Http2Protocol class.

Http2Protocol ( Uri uri, IStreamStore streamsStore, ProtocolOptions options ) : System.Collections.Generic

Initializes a new instance of the Http2Protocol class.

OnSocketData ( object sender, SocketEventArgs e ) : void

Event handler for Http2 data.

OnSocketOpen ( object sender, EventArgs e ) : void

Event handler for Socket open.

OnSocketPing ( object sender, EventArgs e ) : void

Event handler for Protocol Ping.

ProcessControlFrame ( ControlFrame frame ) : void

Process Protocol control frame.

ProcessDataFrame ( System.ServiceModel.Http2Protocol.ProtocolFrames.DataFrame frame ) : void

Process Protocol Data frame.

ProcessMessages ( Object stateInfo ) : void

Processes the messages.

Receive ( byte message ) : int
ReceiveData ( ) : byte[]

Receives the data.

SendFrame ( ControlFrame frame ) : void

Sends the frame.

SendFrame ( Http2Stream stream, System.ServiceModel.Http2Protocol.ProtocolFrames.BaseFrame frame ) : void

Sends the data.

SendMessage ( byte message ) : void
SocketOnClose ( object sender, SocketCloseEventArgs e ) : void

메소드 상세

Close() 공개 메소드

Initiates the Http2 close handshake.
public Close ( StatusCode reason, int lastSeenStreamId ) : void
reason StatusCode the status code.
lastSeenStreamId int the last stream id.
리턴 void

Connect() 공개 메소드

Initializes connection to the remote host.
public Connect ( ) : bool
리턴 bool

SendData() 공개 메소드

Sends the data.
public SendData ( Http2Stream stream, System.ServiceModel.Http2Protocol.ProtocolData data, bool isFin ) : void
stream Http2Stream The stream.
data System.ServiceModel.Http2Protocol.ProtocolData The data.
isFin bool FIN flag.
리턴 void

SendGoAway() 공개 메소드

Sends the GoAway stream.
public SendGoAway ( int lastSeenStreamId, StatusCode reason ) : void
lastSeenStreamId int The last seen stream id.
reason StatusCode The reason of GoAway.
리턴 void

SendHeaders() 공개 메소드

Sends the headers.
public SendHeaders ( Http2Stream stream, ProtocolHeaders headers, bool isFin ) : void
stream Http2Stream The stream.
headers ProtocolHeaders The headers.
isFin bool FIN flag.
리턴 void

SendPing() 공개 메소드

Sends the ping.
public SendPing ( int streamId ) : void
streamId int
리턴 void

SendRST() 공개 메소드

Sends the RST.
public SendRST ( Http2Stream stream, StatusCode reason ) : void
stream Http2Stream The stream.
reason StatusCode The reason for RST.
리턴 void

SendRST() 공개 메소드

Sends the RST.
public SendRST ( int streamId, StatusCode reason ) : void
streamId int The stream id.
reason StatusCode The reason for RST.
리턴 void

SendSettings() 공개 메소드

public SendSettings ( Http2Stream stream ) : void
stream Http2Stream
리턴 void

SendSynReply() 공개 메소드

public SendSynReply ( Http2Stream stream ) : void
stream Http2Stream
리턴 void

SendSynStream() 공개 메소드

Sends the syn stream request.
public SendSynStream ( Http2Stream stream, ProtocolHeaders headers, bool isFin ) : void
stream Http2Stream The stream.
headers ProtocolHeaders The headers.
isFin bool FIN flag.
리턴 void

SendWindowUpdate() 공개 메소드

Sends the window update request.
public SendWindowUpdate ( Http2Stream stream, Int64 windowAddition ) : void
stream Http2Stream The stream.
windowAddition Int64
리턴 void

SendWindowUpdate() 공개 메소드

Sends the window update request.
public SendWindowUpdate ( int streamId, Int64 windowAddition ) : void
streamId int The stream id.
windowAddition Int64
리턴 void

SendWindowUpdate() 공개 메소드

Sends the WindowUpdate frame.
public SendWindowUpdate ( int deltaSize, int streamId ) : void
deltaSize int
streamId int
리턴 void

SetProcessors() 공개 메소드

Sets the frames processors.
public SetProcessors ( List processors ) : void
processors List The processors.
리턴 void

프로퍼티 상세

Version 공개적으로 정적으로 프로퍼티

Protocol version.
public static short Version
리턴 short