22 lines
335 B
C++
22 lines
335 B
C++
|
#include "StdAfx.h"
|
||
|
#include "PythonNetworkStream.h"
|
||
|
#include "PythonApplication.h"
|
||
|
#include "Packet.h"
|
||
|
|
||
|
void CPythonNetworkStream::OffLinePhase()
|
||
|
{
|
||
|
TPacketHeader header;
|
||
|
|
||
|
if (!CheckPacket(&header))
|
||
|
return;
|
||
|
|
||
|
switch (header)
|
||
|
{
|
||
|
case HEADER_GC_PHASE:
|
||
|
if (RecvPhasePacket())
|
||
|
return;
|
||
|
break;
|
||
|
}
|
||
|
|
||
|
RecvErrorPacket(header);
|
||
|
}
|