public void reset() { _packetReceiver = null; _packetSender = null; _filter = null; connected = false; if (_socket != null) { if (_socket.RemoteEndPoint != null) { Dbg.DEBUG_MSG(string.Format("NetworkInterface::reset(), close socket from '{0}'", _socket.RemoteEndPoint.ToString())); } _socket.Close(0); _socket = null; } }
public void setFilter(EncryptionFilter filter) { _filter = filter; }