示例#1
0
        public void Send(byte[] data, IConnection connection, IBandwidthController bandwidthController,
                         SuccessCallback onSuccess, FailureCallback onFailure)
        {
            var buffer = new Buffer(data);

            SendInternal(IOState.Create(buffer, buffer.Size, connection, bandwidthController, onSuccess, onFailure));
        }
示例#2
0
 public void Receive(int bytes, IConnection connection, IBandwidthController bandwidthController,
                     SuccessCallback onSuccess, FailureCallback onFailure)
 {
     ReceiveInternal(IOState.Create(null, bytes, connection, bandwidthController, onSuccess, onFailure));
 }