Example #1
0
 /// <summary>
 /// Signals that the connection to the server was lost.
 /// </summary>
 public void ConnectionLost()
 {
     _result = SocketReadResult.ConnectionLost;
     _socketReadComplete.Set();
 }
Example #2
0
 /// <summary>
 /// Signals that the socket read failed.
 /// </summary>
 /// <param name="cause">The <see cref="Exception"/> that caused the read to fail.</param>
 public void Fail(Exception cause)
 {
     Exception = cause;
     _result   = SocketReadResult.Failed;
     _socketReadComplete.Set();
 }
Example #3
0
 /// <summary>
 /// Signals that the total number of bytes has been read successfully.
 /// </summary>
 public void Complete()
 {
     _result = SocketReadResult.Complete;
     _socketReadComplete.Set();
 }
Example #4
0
 /// <summary>
 /// Signals that the connection to the server was lost.
 /// </summary>
 public void ConnectionLost()
 {
     _result = SocketReadResult.ConnectionLost;
     _socketReadComplete.Set();
 }
Example #5
0
 /// <summary>
 /// Signals that the socket read failed.
 /// </summary>
 /// <param name="cause">The <see cref="Exception"/> that caused the read to fail.</param>
 public void Fail(Exception cause)
 {
     Exception = cause;
     _result = SocketReadResult.Failed;
     _socketReadComplete.Set();
 }
Example #6
0
 /// <summary>
 /// Signals that the total number of bytes has been read successfully.
 /// </summary>
 public void Complete()
 {
     _result = SocketReadResult.Complete;
     _socketReadComplete.Set();
 }