X=Y->receive(Z); \
switch (serobj.getpayloadtype()) \
{ \
{ \
reuseMessage.unpack(serobj); \
if (serobj.data->size() != serobj.pos) \
{ \
fprintf(
logfile,
"unpack %i size %lu pos %lu\n", serobj.getpayloadtype(), serobj.data->size(), serobj.pos); \
} \
X=&reuseMessage; \
} \
break; \
{ \
reuseMessageSocket.unpack(serobj); \
if (serobj.data->size() != serobj.pos) \
{ \
fprintf(
logfile,
"unpack %i size %lu pos %lu\n", serobj.getpayloadtype(), serobj.data->size(), serobj.pos); \
} \
X=&reuseMessageSocket; \
} \
break; \
{ \
reuseMessageUserSchema.unpack(serobj); \
if (serobj.data->size() != serobj.pos) \
{ \
fprintf(
logfile,
"unpack %i size %lu pos %lu\n", serobj.getpayloadtype(), serobj.data->size(), serobj.pos); \
} \
X=&reuseMessageUserSchema; \
} \
break; \
{ \
reuseMessageDeadlock.unpack(serobj); \
if (serobj.data->size() != serobj.pos) \
{ \
fprintf(
logfile,
"unpack %i size %lu pos %lu\n", serobj.getpayloadtype(), serobj.data->size(), serobj.pos); \
} \
X=&reuseMessageDeadlock; \
} \
break; \
{ \
reuseMessageSubtransactionCmd.unpack(serobj); \
if (serobj.data->size() != serobj.pos) \
{ \
fprintf(
logfile,
"unpack %i size %lu pos %lu\n", serobj.getpayloadtype(), serobj.data->size(), serobj.pos); \
} \
X=&reuseMessageSubtransactionCmd; \
} \
break; \
{ \
reuseMessageCommitRollback.unpack(serobj); \
if (serobj.data->size() != serobj.pos) \
{ \
fprintf(
logfile,
"unpack %i size %lu pos %lu\n", serobj.getpayloadtype(), serobj.data->size(), serobj.pos); \
} \
X=&reuseMessageCommitRollback; \
} \
break; \
{ \
reuseMessageDispatch.unpack(serobj); \
if (serobj.data->size() != serobj.pos) \
{ \
fprintf(
logfile,
"unpack %i size %lu pos %lu\n", serobj.getpayloadtype(), serobj.data->size(), serobj.pos); \
} \
X=&reuseMessageDispatch; \
} \
break; \
{ \
reuseMessageAckDispatch.unpack(serobj); \
if (serobj.data->size() != serobj.pos) \
{ \
fprintf(
logfile,
"unpack %i size %lu pos %lu\n", serobj.getpayloadtype(), serobj.data->size(), serobj.pos); \
} \
X=&reuseMessageAckDispatch; \
} \
break; \
{ \
reuseMessageApply.unpack(serobj); \
if (serobj.data->size() != serobj.pos) \
{ \
fprintf(
logfile,
"unpack %i size %lu pos %lu\n", serobj.getpayloadtype(), serobj.data->size(), serobj.pos); \
} \
X=&reuseMessageApply; \
} \
break; \
{ \
reuseMessageAckApply.unpack(serobj); \
if (serobj.data->size() != serobj.pos) \
{ \
fprintf(
logfile,
"unpack %i size %lu pos %lu\n", serobj.getpayloadtype(), serobj.data->size(), serobj.pos); \
} \
X=&reuseMessageAckApply; \
} \
break; \
default: \
printf("%s %i anomaly %i\n", __FILE__, __LINE__, serobj.getpayloadtype()); \
} \
delete serobj.data; \
}