private static void _onSent(IAsyncResult ar) { AsyncResult result = (AsyncResult)ar; AsyncSendMethod caller = (AsyncSendMethod)result.AsyncDelegate; caller.EndInvoke(ar); }
void _init(NetworkInterface networkInterface) { _networkInterface = networkInterface; _buffer = new byte[KBEngineApp.app.getInitArgs().SEND_BUFFER_MAX]; _asyncSendMethod = new AsyncSendMethod(this._asyncSend); _asyncCallback = new AsyncCallback(_onSent); _wpos = 0; _spos = 0; _sending = 0; }
void _init(NetworkInterface networkInterface) { _networkInterface = networkInterface; _buffer = new byte[NetworkInterface.TCP_PACKET_MAX]; _asyncSendMethod = new AsyncSendMethod(this._asyncSend); _asyncCallback = new AsyncCallback(_onSent); _wpos = 0; _spos = 0; _sending = 0; }
void _init(NetworkInterface networkInterface) { _networkInterface = networkInterface; _buffer = new byte[KBEngineApp.app.getInitArgs().SEND_BUFFER_MAX]; _asyncSendMethod = new AsyncSendMethod(this._asyncSend); _asyncCallback = new AsyncCallback(_onSent); _wpos = 0; _spos = 0; _sending = 0; }
protected static void _onSent(IAsyncResult ar) { AsyncSendMethod caller = (AsyncSendMethod)ar.AsyncState; caller.EndInvoke(ar); }
public PacketSenderBase(NetworkInterfaceBase networkInterface) { _networkInterface = networkInterface; _asyncSendMethod = new AsyncSendMethod(this._asyncSend); _asyncCallback = new AsyncCallback(_onSent); }