C# 클래스 FastNetwork.UdpServer

udp 服务器
상속: FastNetwork.Utils.DisposableBase, IUdpServer
파일 보기 프로젝트 열기: zhujunxxxxx/FastNetwork

공개 메소드들

메소드 설명
SendTo ( EndPoint endPoint, byte payload ) : void

send to...

Start ( ) : void

start

Stop ( ) : void

stop

UdpServer ( int port, IUdpProtocol protocol, IUdpServerHandler handler ) : System

new

UdpServer ( int port, int messageBufferSize, int receiveThreads, IUdpProtocol protocol, IUdpServerHandler handler ) : System

new

보호된 메소드들

메소드 설명
Free ( bool disposing ) : void

free

비공개 메소드들

메소드 설명
BeginReceive ( SocketAsyncEventArgs e ) : void

异步接收数据

ReceiveCompleted ( object sender, SocketAsyncEventArgs e ) : void

completed handle

메소드 상세

Free() 보호된 메소드

free
protected Free ( bool disposing ) : void
disposing bool
리턴 void

SendTo() 공개 메소드

send to...
public SendTo ( EndPoint endPoint, byte payload ) : void
endPoint System.Net.EndPoint
payload byte
리턴 void

Start() 공개 메소드

start
public Start ( ) : void
리턴 void

Stop() 공개 메소드

stop
public Stop ( ) : void
리턴 void

UdpServer() 공개 메소드

new
public UdpServer ( int port, IUdpProtocol protocol, IUdpServerHandler handler ) : System
port int
protocol IUdpProtocol
handler IUdpServerHandler
리턴 System

UdpServer() 공개 메소드

new
protocol is null. service is null.
public UdpServer ( int port, int messageBufferSize, int receiveThreads, IUdpProtocol protocol, IUdpServerHandler handler ) : System
port int
messageBufferSize int
receiveThreads int
protocol IUdpProtocol
handler IUdpServerHandler
리턴 System