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