C# Class System.ServiceModel.Http2Protocol.Http2Protocol

HTTP2 protocol.
Inheritance: IDisposable
Afficher le fichier Open project: MSOpenTech/HTTP-SPEED-PLUS-MOBILITY Class Usage Examples

Méthodes publiques

Свойство Type Description
Version short

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

Connect() public méthode

Initializes connection to the remote host.
public Connect ( ) : bool
Résultat bool

SendData() public méthode

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.
Résultat void

SendGoAway() public méthode

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

SendHeaders() public méthode

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

SendPing() public méthode

Sends the ping.
public SendPing ( int streamId ) : void
streamId int
Résultat void

SendRST() public méthode

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

SendRST() public méthode

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

SendSettings() public méthode

public SendSettings ( Http2Stream stream ) : void
stream Http2Stream
Résultat void

SendSynReply() public méthode

public SendSynReply ( Http2Stream stream ) : void
stream Http2Stream
Résultat void

SendSynStream() public méthode

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.
Résultat void

SendWindowUpdate() public méthode

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

SendWindowUpdate() public méthode

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

SendWindowUpdate() public méthode

Sends the WindowUpdate frame.
public SendWindowUpdate ( int deltaSize, int streamId ) : void
deltaSize int
streamId int
Résultat void

SetProcessors() public méthode

Sets the frames processors.
public SetProcessors ( List processors ) : void
processors List The processors.
Résultat void

Property Details

Version public_oe static_oe property

Protocol version.
public static short Version
Résultat short