C# 클래스 GlowCommon.AppConnectionManager

상속: IDiscoveryServerListener, ICommandServerListener
파일 보기 프로젝트 열기: QuinnDamerell/Glow 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
IsConnected bool

공개 메소드들

메소드 설명
AppConnectionManager ( ) : GlowCommon.Interfaces
OnClientFound ( string ipAddress ) : void

Called when a server is found! Try to connect.

OnCommand ( Command command ) : Command

Fired when the server sends a command

OnConnect ( ) : void

Fired when a new server connection has been made

OnDisconnected ( ) : void

Fired when a server connection has been lost

OnFatalError ( ) : void

Fired when there has been an error we can't recover from.

SendCommand ( Command cmd ) : Task

Called by the consumer when they want to send a message to the other side.

비공개 메소드들

메소드 설명
CreateDiscoveryPingTimmer ( ) : void

Used to create a tick timer for the broadcast pinger

DestoryDiscoverPingTimer ( ) : void

Used to stop the timer for the ping timer.

메소드 상세

AppConnectionManager() 공개 메소드

public AppConnectionManager ( ) : GlowCommon.Interfaces
리턴 GlowCommon.Interfaces

OnClientFound() 공개 메소드

Called when a server is found! Try to connect.
public OnClientFound ( string ipAddress ) : void
ipAddress string
리턴 void

OnCommand() 공개 메소드

Fired when the server sends a command
public OnCommand ( Command command ) : Command
command GlowCommon.DataObjects.Command
리턴 GlowCommon.DataObjects.Command

OnConnect() 공개 메소드

Fired when a new server connection has been made
public OnConnect ( ) : void
리턴 void

OnDisconnected() 공개 메소드

Fired when a server connection has been lost
public OnDisconnected ( ) : void
리턴 void

OnFatalError() 공개 메소드

Fired when there has been an error we can't recover from.
public OnFatalError ( ) : void
리턴 void

SendCommand() 공개 메소드

Called by the consumer when they want to send a message to the other side.
public SendCommand ( Command cmd ) : Task
cmd GlowCommon.DataObjects.Command
리턴 Task

프로퍼티 상세

IsConnected 공개적으로 프로퍼티

Indicates if we are connected or not.
public bool IsConnected
리턴 bool