C# Class Model.NetworkComponent

Inheritance: Model.Component
显示文件 Open project: egametang/Egametang Class Usage Examples

Public Methods

Method Description
Create ( string address ) : Model.Session

创建一个新Session

Dispose ( ) : void
Get ( long id ) : Model.Session
Remove ( long id ) : void

Protected Methods

Method Description
Awake ( NetworkProtocol protocol ) : void
Awake ( NetworkProtocol protocol, string host, int port ) : void
Update ( ) : void

Private Methods

Method Description
Accept ( ) : Task
StartAccept ( ) : void

Method Details

Awake() protected method

protected Awake ( NetworkProtocol protocol ) : void
protocol NetworkProtocol
return void

Awake() protected method

protected Awake ( NetworkProtocol protocol, string host, int port ) : void
protocol NetworkProtocol
host string
port int
return void

Create() public method

创建一个新Session
public Create ( string address ) : Model.Session
address string
return Model.Session

Dispose() public method

public Dispose ( ) : void
return void

Get() public method

public Get ( long id ) : Model.Session
id long
return Model.Session

Remove() public method

public Remove ( long id ) : void
id long
return void

Update() protected method

protected Update ( ) : void
return void