C# Class System.ServiceModel.Http2Protocol.Http2Protocol

HTTP2 protocol.
Inheritance: IDisposable
Mostrar archivo Open project: MSOpenTech/HTTP-SPEED-PLUS-MOBILITY Class Usage Examples

Public Properties

Property Type Description
Version short

Public Methods

Method Description
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.

Private Methods

Method Description
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

Method Details

Close() public method

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

Connect() public method

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

SendData() public method

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.
return void

SendGoAway() public method

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

SendHeaders() public method

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

SendPing() public method

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

SendRST() public method

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

SendRST() public method

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

SendSettings() public method

public SendSettings ( Http2Stream stream ) : void
stream Http2Stream
return void

SendSynReply() public method

public SendSynReply ( Http2Stream stream ) : void
stream Http2Stream
return void

SendSynStream() public method

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.
return void

SendWindowUpdate() public method

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

SendWindowUpdate() public method

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

SendWindowUpdate() public method

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

SetProcessors() public method

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

Property Details

Version public_oe static_oe property

Protocol version.
public static short Version
return short