Beispiel #1
0
	Connection::Connection(const Connection& connection)
	{
		this->SOCKET = connection.GetSocket();
		this->CONNECTED = connection.GetIsConnected();
		this->DDOS = new DDOS_Filter(*connection.GetDDOSFilter());
		this->INCOMING = new Packet(*connection.GetIncoming());
		this->TIMER = new Timer(*connection.GetTimer());
		this->ERROR_HANDLE = connection.GetErrorHandle();
	}
Beispiel #2
0
 //! Checks wether two connections have the same underlying socket or not.
 bool operator == (const Connection& c) const noexcept
 { return GetSocket().fd() == c.GetSocket().fd(); }