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

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