C# Class Aegis.Network.NetworkChannel

Datei anzeigen Open project: SyncZone/AegisFramework Class Usage Examples

Public Properties

Property Type Description
Channels NamedObjectIndexer
Name string

Public Methods

Method Description
Close ( ) : void
CreateChannel ( string name, SessionGenerateHandler sessionGenerator ) : NetworkChannel

NetworkChannel 객체를 생성합니다. name은 이전에 생성된 NetworkChannel과 동일한 문자열을 사용할 수 없습니다.

CreateChannelFromNode ( TreeNode node ) : NetworkChannel

TreeNode에 정의된 데이터를 기준으로 NetworkChannel 객체를 생성합니다. TreeNode에는 name, sessionClass, maxSessionPoolCount, listenIpAddress, listenPortNo가 정의되어있어야 합니다.

Release ( ) : void

생성된 모든 NetworkChannel을 종료하고 사용중인 리소스를 반환합니다.

Private Methods

Method Description
GenerateSession ( string sessionClassName ) : Session
NetworkChannel ( string name ) : System
PopInactiveSession ( ) : Session

Method Details

Close() public method

public Close ( ) : void
return void

CreateChannel() public static method

NetworkChannel 객체를 생성합니다. name은 이전에 생성된 NetworkChannel과 동일한 문자열을 사용할 수 없습니다.
public static CreateChannel ( string name, SessionGenerateHandler sessionGenerator ) : NetworkChannel
name string 생성할 NetworkChannel의 고유한 이름.
sessionGenerator SessionGenerateHandler Session 객체를 생성할 핸들러. null이면 기본 Session 객체가 생성됩니다.
return NetworkChannel

CreateChannelFromNode() public static method

TreeNode에 정의된 데이터를 기준으로 NetworkChannel 객체를 생성합니다. TreeNode에는 name, sessionClass, maxSessionPoolCount, listenIpAddress, listenPortNo가 정의되어있어야 합니다.
public static CreateChannelFromNode ( TreeNode node ) : NetworkChannel
node TreeNode 생성할 NetworkChannel의 데이터가 정의된 TreeNode
return NetworkChannel

Release() public static method

생성된 모든 NetworkChannel을 종료하고 사용중인 리소스를 반환합니다.
public static Release ( ) : void
return void

Property Details

Channels public_oe static_oe property

public static NamedObjectIndexer Channels
return NamedObjectIndexer

Name public_oe property

이 NetworkChannel 객체의 고유한 이름입니다.
public string Name
return string