示例#1
0
        private void InnerSend(object state)
        {
            AsyncSocketSendState stateValue = state as AsyncSocketSendState;

            try
            {
                if (stateValue == null)
                {
                    return;
                }

                _socket.Send(stateValue.Buffer);

                stateValue.Callback();
            }
            catch (Exception e)
            {
                stateValue.Error(e);
            }
        }