C# Class FastNetwork.UdpServer.AsyncSendPool

用于异步发送的SocketAsyncEventArgs对象池
Inheritance: ISAEAPool
Show file Open project: zhujunxxxxx/FastNetwork

Public Methods

Method Description
AsyncSendPool ( int messageBufferSize, Socket socket ) : System

new

GetSocketAsyncEventArgs ( ) : SocketAsyncEventArgs

get

ReleaseSocketAsyncEventArgs ( SocketAsyncEventArgs e ) : void

release

SendAsync ( EndPoint endPoint, byte payload ) : void

sned async

Private Methods

Method Description
SendCompleted ( object sender, SocketAsyncEventArgs e ) : void

send completed handle

Method Details

AsyncSendPool() public method

new
public AsyncSendPool ( int messageBufferSize, Socket socket ) : System
messageBufferSize int
socket Socket
return System

GetSocketAsyncEventArgs() public method

get
public GetSocketAsyncEventArgs ( ) : SocketAsyncEventArgs
return System.Net.Sockets.SocketAsyncEventArgs

ReleaseSocketAsyncEventArgs() public method

release
public ReleaseSocketAsyncEventArgs ( SocketAsyncEventArgs e ) : void
e System.Net.Sockets.SocketAsyncEventArgs
return void

SendAsync() public method

sned async
endPoint is null payload is null or empty payload length大于messageBufferSize
public SendAsync ( EndPoint endPoint, byte payload ) : void
endPoint System.Net.EndPoint
payload byte
return void