MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / ProcessSendComplete

Method ProcessSendComplete

engine/Poseidon/Network/NetTransportNet.cpp:1690–1728  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1688
1689bool NetClient::IsSessionTerminated()
1690{
1691 enterSnd();
1692 if (!channel)
1693 {
1694 leaveSnd();
1695 return true;
1696 }
1697 // check NetChannel connectivity:
1698 if (!amIBot && channel->dropped())
1699 {
1700 sessionTerminated = true;
1701 whySessionTerminated = NTRTimeout;
1702 }
1703 leaveSnd();
1704 return sessionTerminated;
1705}
1706
1707NetTerminationReason NetClient::GetWhySessionTerminated()
1708{
1709 NetTerminationReason reason;
1710 enterSnd();
1711 reason = whySessionTerminated;
1712
1713 leaveSnd();
1714 return reason;
1715}
1716
1717void NetClient::ProcessUserMessages(UserMessageClientCallback* callback, void* context)
1718{
1719 if (!callback)
1720 {
1721 return;
1722 }
1723 Ref<NetMessage> msg;
1724 enterRcv();
1725#ifdef NET_LOG_CLIENT_PROCESS
1726 int n = 0;
1727 msg = received;
1728 while (msg)
1729 {
1730 n++;
1731 msg = msg->next;

Callers 2

ReceiveSystemMessagesMethod · 0.80
ReceiveSystemMessagesMethod · 0.80

Calls 10

getServerPeerFunction · 0.85
getChannelIdMethod · 0.80
getStatusMethod · 0.80
getLengthMethod · 0.80
getSerialMethod · 0.80
getFlagsMethod · 0.80
wasSentMethod · 0.80
getPeerIdMethod · 0.80
getChannelMethod · 0.80
getDataMethod · 0.45

Tested by

no test coverage detected