public virtual void CloseConnectionAndSendError(ISocksClient connectionToClose, uint errorCode) { var errorArray = BitConverter.GetBytes(errorCode); try { connectionToClose.Send(errorArray); } finally { connectionToClose.Close(); } }
public void CloseConnectionAndSendError(ISocksClient connectionToClose, uint errorCode) { connectionToClose.Close(); // throw new NotImplementedException(); }