C# Class System.ServiceModel.Http2Protocol.ProtocolSession

Speed+Mobility Session
Inheritance: IDisposable, IStreamStore
Afficher le fichier Open project: MSOpenTech/HTTP-SPEED-PLUS-MOBILITY Class Usage Examples

Méthodes publiques

Свойство Type Description
MaxWindowBalance UInt32

Private Properties

Свойство Type Description
GenerateNewStreamId int
OnCloseStream void
OnProtocolClose void
OnProtocolError void
OnProtocolOpen void
OnProtocolPing void
OnSessionFrame void
OpenStream Http2Stream

Méthodes publiques

Méthode Description
Dispose ( ) : void

Disposes the instance.

End ( ) : void

Ends the session.

End ( StatusCode reason ) : void

Ends the sessions.

GetStreamById ( int streamId ) : Http2Stream

returns stream by id.

Open ( ) : void

Opens the sessions.

OpenStream ( ProtocolHeaders headers, bool isFinal ) : Http2Stream

Opens the stream in current session.

Ping ( int streamId ) : void

Sends ping.

ProtocolSession ( SecureSocket socket, ProtocolOptions options ) : System.Collections.Generic

Initializes a new instance of the ProtocolSession class.

ProtocolSession ( Uri uri ) : System.Collections.Generic

Initializes a new instance of the ProtocolSession class.

ProtocolSession ( Uri uri, bool isServer, ProtocolOptions options ) : System.Collections.Generic

Initializes a new instance of the ProtocolSession class.

Private Methods

Méthode Description
GenerateNewStreamId ( ) : int

returns new stream id.

OnCloseStream ( object sender, System.ServiceModel.Http2Protocol.RSTEventArgs e ) : void

Event handler for close stream.

OnProtocolClose ( object sender, System.ServiceModel.Http2Protocol.CloseFrameEventArgs e ) : void

Event handler for close.

OnProtocolError ( object sender, System.ServiceModel.Http2Protocol.ProtocolErrorEventArgs e ) : void

Event handler for error.

OnProtocolOpen ( object sender, EventArgs e ) : void

Event handler for open.

OnProtocolPing ( object sender, EventArgs e ) : void

Event handler for Ping.

OnSessionFrame ( object sender, ControlFrameEventArgs e ) : void

Event handler for session frame.

OpenStream ( int id, ProtocolHeaders headers, bool isFinal ) : Http2Stream

Opens the stream in current session.

Method Details

Dispose() public méthode

Disposes the instance.
public Dispose ( ) : void
Résultat void

End() public méthode

Ends the session.
public End ( ) : void
Résultat void

End() public méthode

Ends the sessions.
public End ( StatusCode reason ) : void
reason StatusCode The reason.
Résultat void

GetStreamById() public méthode

returns stream by id.
public GetStreamById ( int streamId ) : Http2Stream
streamId int Stream Id.
Résultat Http2Stream

Open() public méthode

Opens the sessions.
public Open ( ) : void
Résultat void

OpenStream() public méthode

Opens the stream in current session.
public OpenStream ( ProtocolHeaders headers, bool isFinal ) : Http2Stream
headers ProtocolHeaders The S+M headers.
isFinal bool the final flag.
Résultat Http2Stream

Ping() public méthode

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

ProtocolSession() public méthode

Initializes a new instance of the ProtocolSession class.
public ProtocolSession ( SecureSocket socket, ProtocolOptions options ) : System.Collections.Generic
socket Org.Mentalis.Security.Ssl.SecureSocket
options ProtocolOptions Session options.
Résultat System.Collections.Generic

ProtocolSession() public méthode

Initializes a new instance of the ProtocolSession class.
public ProtocolSession ( Uri uri ) : System.Collections.Generic
uri Uri the URI.
Résultat System.Collections.Generic

ProtocolSession() public méthode

Initializes a new instance of the ProtocolSession class.
public ProtocolSession ( Uri uri, bool isServer, ProtocolOptions options ) : System.Collections.Generic
uri Uri the URI.
isServer bool the Server flag.
options ProtocolOptions Session options.
Résultat System.Collections.Generic

Property Details

MaxWindowBalance public_oe property

Is a special value that designates "infinite".
public UInt32 MaxWindowBalance
Résultat UInt32