/// <summary> /// /// </summary> /// <param name="socketObject"></param> /// <param name="data"></param> public void PushSend(SocketObject socketObject, byte[] data) { var e = _readWritePool.Pop(); e.AcceptSocket = socketObject.Connection; DataToken token = (DataToken)e.UserToken; token.Socket = socketObject; _saeaProxy.Send(e, data); }
/// <summary> /// /// </summary> /// <param name="data"></param> /// <param name="offset"></param> /// <param name="count"></param> public void PushSend(byte[] data, int offset, int count) { byte[] buffer = new byte[count]; Buffer.BlockCopy(data, offset, buffer, 0, count); _saeaProxy.Send(_saeaSend, data); }