MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / SendFromConnection

Method SendFromConnection

pcsx2/DEV9/sockets.cpp:529–537  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

527}
528
529int 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
539void SocketAdapter::HandleConnectionClosed(BaseSession* sender)
540{

Callers

nothing calls this directly

Calls 3

TryGetValueMethod · 0.45
SendMethod · 0.45
GetPayloadMethod · 0.45

Tested by

no test coverage detected