void StarGameProtocol::PacketHandler(DDPPacketBufferPtr packet) { if(sHubIsLocal) hub_received_network_packet(packet); else spoke_received_network_packet(packet); }
static inline void check_send_packet_to_hub() { if(sNeedToSendLocalOutgoingBuffer) { logContextNMT("delivering stored packet to local hub"); hub_received_network_packet(&sLocalOutgoingBuffer); } sNeedToSendLocalOutgoingBuffer = false; }