C# Class System.ServiceModel.Http2Protocol.ProtocolSession

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

Public Properties

Property Type Description
MaxWindowBalance UInt32

Private Properties

Property Type Description
GenerateNewStreamId int
OnCloseStream void
OnProtocolClose void
OnProtocolError void
OnProtocolOpen void
OnProtocolPing void
OnSessionFrame void
OpenStream Http2Stream

Public Methods

Method 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

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

Disposes the instance.
public Dispose ( ) : void
return void

End() public method

Ends the session.
public End ( ) : void
return void

End() public method

Ends the sessions.
public End ( StatusCode reason ) : void
reason StatusCode The reason.
return void

GetStreamById() public method

returns stream by id.
public GetStreamById ( int streamId ) : Http2Stream
streamId int Stream Id.
return Http2Stream

Open() public method

Opens the sessions.
public Open ( ) : void
return void

OpenStream() public method

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

Ping() public method

Sends ping.
public Ping ( int streamId ) : void
streamId int
return void

ProtocolSession() public method

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.
return System.Collections.Generic

ProtocolSession() public method

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

ProtocolSession() public method

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.
return System.Collections.Generic

Property Details

MaxWindowBalance public property

Is a special value that designates "infinite".
public UInt32 MaxWindowBalance
return UInt32