C# Class FastNetwork.UdpServer

udp 服务器
Inheritance: FastNetwork.Utils.DisposableBase, IUdpServer
Show file Open project: zhujunxxxxx/FastNetwork

Public Methods

Method Description
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

Protected Methods

Method Description
Free ( bool disposing ) : void

free

Private Methods

Method Description
BeginReceive ( SocketAsyncEventArgs e ) : void

异步接收数据

ReceiveCompleted ( object sender, SocketAsyncEventArgs e ) : void

completed handle

Method Details

Free() protected method

free
protected Free ( bool disposing ) : void
disposing bool
return void

SendTo() public method

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

Start() public method

start
public Start ( ) : void
return void

Stop() public method

stop
public Stop ( ) : void
return void

UdpServer() public method

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

UdpServer() public method

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
return System