C# Class FastNetwork.SocketConnector

连接器
Afficher le fichier Open project: zhujunxxxxx/FastNetwork

Méthodes publiques

Свойство Type Description
Name string

Méthodes publiques

Méthode Description
BeginConnect ( EndPoint endPoint, IHost host, Action callback ) : void

begin connect

SocketConnector ( string name, EndPoint endPoint, IHost host, Action onConnected, Exception>.Action onDisconnected ) : System

new

Start ( ) : void

start

Stop ( ) : void

stop

Private Methods

Méthode Description
OnDisconnected ( IConnection connection, Exception ex ) : void

断开连接

Method Details

BeginConnect() public static méthode

begin connect
endPoint is null host is null callback is null
public static BeginConnect ( EndPoint endPoint, IHost host, Action callback ) : void
endPoint System.Net.EndPoint
host IHost
callback Action
Résultat void

SocketConnector() public méthode

new
public SocketConnector ( string name, EndPoint endPoint, IHost host, Action onConnected, Exception>.Action onDisconnected ) : System
name string
endPoint System.Net.EndPoint
host IHost
onConnected Action
onDisconnected Exception>.Action
Résultat System

Start() public méthode

start
public Start ( ) : void
Résultat void

Stop() public méthode

stop
public Stop ( ) : void
Résultat void

Property Details

Name public_oe property

get node name
public string Name
Résultat string