C# Класс System.ServiceModel.Http2Protocol.Http2Protocol

HTTP2 protocol.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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