MCPcopy Create free account
hub / github.com/MonaSolutions/MonaServer / ~RelaySocket

Method ~RelaySocket

MonaCore/sources/RelayServer.cpp:79–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79RelaySocket::~RelaySocket() {
80 OnPacket::unsubscribe(onPacket);
81 OnError::unsubscribe(onError);
82
83 for (Relay* pRelay : _relays)
84 delete pRelay;
85}
86
87bool RelaySocket::relay(const SocketAddress& address1,const SocketAddress& address2,UInt16 timeout) {
88 lock_guard<mutex> lock(_mutex);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected