public virtual void CloseConnectionAndSendError(ISocksClient connectionToClose, uint errorCode)
        {
            var errorArray = BitConverter.GetBytes(errorCode);

            try
            {
                connectionToClose.Send(errorArray);
            }
            finally
            {
                connectionToClose.Close();
            }
        }
Ejemplo n.º 2
0
 public void CloseConnectionAndSendError(ISocksClient connectionToClose, uint errorCode)
 {
     connectionToClose.Close();
     //            throw new NotImplementedException();
 }