C# Class System.ServiceModel.Http2Protocol.Http2Stream

Http2 stream that runs inside Http2Protocol.
Show file Open project: MSOpenTech/HTTP-SPEED-PLUS-MOBILITY Class Usage Examples

Public Methods

Method Description
Close ( ) : void

Closes the stream.

Close ( StatusCode reason ) : void

Closes the stream with specified reason.

Http2Stream ( int id, ProtocolSession session )

Initializes a new instance of the Http2Stream class.

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

Sends the data to the stream.

SendHeaders ( ProtocolHeaders headers, bool isFin ) : void

Sends the headers to the stream.

SendRST ( StatusCode reason ) : void

Sends the RST to the stream.

SendWindowUpdate ( Int64 windowAddition ) : void

Send the WindowUpdate frame to the stream.

UpdateWindowBalance ( Int64 deltaWindowSize ) : void

Updates the window balance.

Private Methods

Method Description
OnProtocolData ( object sender, System.ServiceModel.Http2Protocol.StreamEventArgs e ) : void

Event handler for protocol data.

OnSessionFrame ( object sender, ControlFrameEventArgs e ) : void

Event handler for Session frame.

OnStreamError ( object sender, System.ServiceModel.Http2Protocol.StreamErrorEventArgs e ) : void

Event handler for Stream error.

OpenClient ( ProtocolHeaders headers, bool isFin ) : void

Opens the stream.

OpenServer ( ProtocolHeaders headers, bool isFin ) : void

Method Details

Close() public method

Closes the stream.
public Close ( ) : void
return void

Close() public method

Closes the stream with specified reason.
public Close ( StatusCode reason ) : void
reason StatusCode The reason.
return void

Http2Stream() public method

Initializes a new instance of the Http2Stream class.
public Http2Stream ( int id, ProtocolSession session )
id int The stream id.
session ProtocolSession The stream session.

SendData() public method

Sends the data to the stream.
public SendData ( System.ServiceModel.Http2Protocol.ProtocolData data, bool isFin ) : void
data System.ServiceModel.Http2Protocol.ProtocolData The data.
isFin bool if set to true than this stream will be half-closed.
return void

SendHeaders() public method

Sends the headers to the stream.
public SendHeaders ( ProtocolHeaders headers, bool isFin ) : void
headers ProtocolHeaders The headers.
isFin bool if set to true than this stream will be half-closed.
return void

SendRST() public method

Sends the RST to the stream.
public SendRST ( StatusCode reason ) : void
reason StatusCode The reason.
return void

SendWindowUpdate() public method

Send the WindowUpdate frame to the stream.
public SendWindowUpdate ( Int64 windowAddition ) : void
windowAddition Int64
return void

UpdateWindowBalance() public method

Updates the window balance.
public UpdateWindowBalance ( Int64 deltaWindowSize ) : void
deltaWindowSize Int64 Size of the delta window.
return void