| 527 | } |
| 528 | |
| 529 | int SocketAdapter::SendFromConnection(ConnectionKey Key, IP_Packet* ipPkt) |
| 530 | { |
| 531 | BaseSession* s = nullptr; |
| 532 | connections.TryGetValue(Key, &s); |
| 533 | if (s != nullptr) |
| 534 | return s->Send(ipPkt->GetPayload()) ? 1 : 0; |
| 535 | else |
| 536 | return -1; |
| 537 | } |
| 538 | |
| 539 | void SocketAdapter::HandleConnectionClosed(BaseSession* sender) |
| 540 | { |
nothing calls this directly
no test coverage detected