Beispiel #1
0
 public void SendBytes(byte[] bytes, int index, int length)
 {
     try
     {
         //write into buffer, maybe cannot finish send all at one time, resend them
         SendBuffer.WriteAtEnd(bytes, index, length);
         SendBytesInBuffer();
     }
     catch (Exception e)
     {
         ExceptionEvent(e);
     }
 }