xpcom_chimera/comproxy/PinoPacket_qiao.cpp
PinoPacket::PinoPacket(char* pPkt, int len)
{
	if (*pPkt++ != VERSION || len < 4) 
	{
		cout << "PinoPacket: unmatched version! " << endl; /* FIXME : Error */
	}

	m_type = *pPkt++;
	pkt_stream = pkt;
	//buildPacket(pkt_type, pkt_body, body_len);
}
/*
 * _ONLY_ for a complete packet stream
 *
 * Used to construct a PinoPacket from the packet stream we received, 
 * so that, we can call member functions, such as getComent(), getComments()
 * to parse the pino packet (we received) and get what we want, 
 & like Comment(s) in PostCommentReq(QueryCommentResp) 
 * and Parameters of QueryCommentReq
 *
 */
_ONLY_ for a complete packet stream
Used to construct a PinoPacket from the packet stream we received,
so that, we can call member functions, such as getComent(), getComments()
to parse the pino packet (we received) and get what we want,
& like Comment(s) in PostCommentReq(QueryCommentResp)
and Parameters of QueryCommentReq
_ONLY_ for a complete packet stream Used to construct a PinoPacket from the packet stream we received so that we can call member functions such as getComent () getComments () to parse the pino packet ( we received ) and get what we want & like Comment ( s ) in PostCommentReq ( QueryCommentResp ) and Parameters of QueryCommentReq
PinoPacket::PinoPacket(char* pPkt, int len)
{
	if (*pPkt++ != VERSION || len < 4) 
	{
		cout << "PinoPacket: unmatched version! " << endl; 
	}
	m_type = *pPkt++;
	pkt_stream = pkt;
}
PinoPacket :: PinoPacket ( char * pPkt , int len ) { if ( * pPkt ++ != VERSION || len < 4 ) { cout << " " << endl ; } m_type = * pPkt ++ ; pkt_stream = pkt ; }
_ONLY_ for a complete packet stream
 Used to construct a PinoPacket from the packet stream we received,
 so that, we can call member functions, such as getComent(), getComments()
 to parse the pino packet (we received) and get what we want,
& like Comment(s) in PostCommentReq(QueryCommentResp)
 and Parameters of QueryCommentReq
_ONLY_ for a complete packet stream Used to construct a PinoPacket from the packet stream we received so that we can call member functions such as getComent () getComments () to parse the pino packet ( we received ) and get what we want & like Comment ( s ) in PostCommentReq ( QueryCommentResp ) and Parameters of QueryCommentReq
/* FIXME : Error */ //buildPacket(pkt_type, pkt_body, body_len);