C# Class FastNetwork.UdpServer

udp 服务器
Inheritance: FastNetwork.Utils.DisposableBase, IUdpServer
Afficher le fichier Open project: zhujunxxxxx/FastNetwork

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Free ( bool disposing ) : void

free

Private Methods

Méthode Description
BeginReceive ( SocketAsyncEventArgs e ) : void

异步接收数据

ReceiveCompleted ( object sender, SocketAsyncEventArgs e ) : void

completed handle

Method Details

Free() protected méthode

free
protected Free ( bool disposing ) : void
disposing bool
Résultat void

SendTo() public méthode

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

Start() public méthode

start
public Start ( ) : void
Résultat void

Stop() public méthode

stop
public Stop ( ) : void
Résultat void

UdpServer() public méthode

new
public UdpServer ( int port, IUdpProtocol protocol, IUdpServerHandler handler ) : System
port int
protocol IUdpProtocol
handler IUdpServerHandler
Résultat System

UdpServer() public méthode

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
Résultat System