long OnAREthProcessTxMessage(dword messageHandle, long txChannel)
{
DWORD msgId = 0;
LONG errorCode = 0;
LONG errorOccured = 0;
// get data from SOME/IP message
if((msgId = AREthGetMessageId(messageHandle)) == 0)
{
// check if last function was executed correct
if((errorCode = AREthGetLastError()) != 0)
{
write("SOME/IP IL error occured: Error code: %d", errorCode);
errorOccured = 1;
}
}
if(errorOccured == 0)
{
write("SOME/IP message with Message ID 0x%08x is send",msgId);
return 1;
}
else
{
return 0;
}
}