C# 클래스 FastNetwork.SocketConnector

连接器
파일 보기 프로젝트 열기: zhujunxxxxx/FastNetwork

공개 프로퍼티들

프로퍼티 타입 설명
Name string

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
OnDisconnected ( IConnection connection, Exception ex ) : void

断开连接

메소드 상세

BeginConnect() 공개 정적인 메소드

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
리턴 void

SocketConnector() 공개 메소드

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
리턴 System

Start() 공개 메소드

start
public Start ( ) : void
리턴 void

Stop() 공개 메소드

stop
public Stop ( ) : void
리턴 void

프로퍼티 상세

Name 공개적으로 프로퍼티

get node name
public string Name
리턴 string