C# Class FastNetwork.ConnectionCollection

socket connection collection
Afficher le fichier Open project: zhujunxxxxx/FastNetwork

Méthodes publiques

Méthode Description
Add ( IConnection connection ) : bool

add

Count ( ) : int

count.

DisconnectAll ( ) : void

断开所有连接

Get ( long connectionID ) : IConnection

get by connection id

Remove ( long connectionID ) : bool

remove connection by id.

ToArray ( ) : IConnection[]

to array

Method Details

Add() public méthode

add
connection is null
public Add ( IConnection connection ) : bool
connection IConnection
Résultat bool

Count() public méthode

count.
public Count ( ) : int
Résultat int

DisconnectAll() public méthode

断开所有连接
public DisconnectAll ( ) : void
Résultat void

Get() public méthode

get by connection id
public Get ( long connectionID ) : IConnection
connectionID long
Résultat IConnection

Remove() public méthode

remove connection by id.
public Remove ( long connectionID ) : bool
connectionID long
Résultat bool

ToArray() public méthode

to array
public ToArray ( ) : IConnection[]
Résultat IConnection[]