Ejemplo n.º 1
0
/**********************************************************************************************
 * handleInitiateRequestPdu
 *********************************************************************************************/
static int	handleInitiateRequestPdu (
		MmsServerConnection* self,
		InitiateRequestPdu_t* request,
		ByteBuffer* response)
{
	parseInitiateRequestPdu(self, request);

	//TODO here we should indicate if something is wrong!
	createInitiateResponse(self, response);

	return 0;
}
static void
handleInitiateRequestPdu (
		MmsServerConnection* self,
		uint8_t* buffer, int bufPos, int maxBufPos,
		ByteBuffer* response)
{

	if (parseInitiateRequestPdu(self, buffer, bufPos, maxBufPos))
		createInitiateResponse(self, response);
	else {
		//TODO send initiate error PDU
	}

}