C# Class OpenStory.Networking.NetworkSession

Inheritance: IDescriptorContainer, IDisposable
ファイルを表示 Open project: shoftee/OpenStory Class Usage Examples

Private Properties

Property Type Description
IDescriptorContainer void

Public Methods

Method Description
AttachSocket ( Socket sessionSocket ) : void

Attaches a socket to this NetworkSession.

Close ( string reason ) : void
Dispose ( ) : void
NetworkSession ( ) : System

Initializes a new instance of the NetworkSession class.

Start ( ) : void

Starts the receive process.

ToString ( ) : string
Write ( byte data ) : void

Writes a byte array to the network stream.

Private Methods

Method Description
IDescriptorContainer ( string reason ) : void

Method Details

AttachSocket() public method

Attaches a socket to this NetworkSession.
/// Thrown if the instance already has a socket attached to it. /// /// Thrown if is . ///
public AttachSocket ( Socket sessionSocket ) : void
sessionSocket Socket The underlying socket to use for this session.
return void

Close() public method

public Close ( string reason ) : void
reason string
return void

Dispose() public method

public Dispose ( ) : void
return void

NetworkSession() public method

Initializes a new instance of the NetworkSession class.
public NetworkSession ( ) : System
return System

Start() public method

Starts the receive process.
/// Thrown if the instance does not have a socket attached to it or /// if the instance is already active. ///
public Start ( ) : void
return void

ToString() public method

public ToString ( ) : string
return string

Write() public method

Writes a byte array to the network stream.
public Write ( byte data ) : void
data byte The data to write.
return void