C# 클래스 GlowCommon.DiscoveryServer

파일 보기 프로젝트 열기: QuinnDamerell/Glow 1 사용 예제들

공개 메소드들

메소드 설명
DiscoveryServer ( DiscoveryMode mode ) : GlowCommon.Interfaces
DoWork ( uint timeElaspedMs ) : void
InvokeBroadcast ( ) : System.Threading.Tasks.Task

Can be called by the client to try to send a message to the server to broadcast.

SetListener ( IDiscoveryServerListener listener ) : void

Used to set a listener for broadcast messages.

비공개 메소드들

메소드 설명
DataSocket_MessageRecieved ( DatagramSocket sender, DatagramSocketMessageReceivedEventArgs args ) : void

Fired when a message is received on the socket

SendBroadcast ( ) : void
SendMessage ( string message ) : System.Threading.Tasks.Task

Send a message on the socket

메소드 상세

DiscoveryServer() 공개 메소드

public DiscoveryServer ( DiscoveryMode mode ) : GlowCommon.Interfaces
mode DiscoveryMode
리턴 GlowCommon.Interfaces

DoWork() 공개 메소드

public DoWork ( uint timeElaspedMs ) : void
timeElaspedMs uint
리턴 void

InvokeBroadcast() 공개 메소드

Can be called by the client to try to send a message to the server to broadcast.
public InvokeBroadcast ( ) : System.Threading.Tasks.Task
리턴 System.Threading.Tasks.Task

SetListener() 공개 메소드

Used to set a listener for broadcast messages.
public SetListener ( IDiscoveryServerListener listener ) : void
listener IDiscoveryServerListener
리턴 void