on key 's'
{
dword messageId = 0x12340004; // service ID = 0x1234, method ID = 0x0004
dword requestId = 0; // client ID = 0, session ID = 0
dword protocolVersion = 1;
dword interfaceVersion = 1;
dword messageType = 0x2; // notification message
dword returnCode = 0; // not available
dword aep; // application endpoint handle
dword messageHandle = 0; // handle of the created SOME/IP message
BYTE payload[5]; // the message payload
dword count; // a simple counter
// initialize the payload
count = 0;
payload[count++] = 0x11;
payload[count++] = 0x22;
payload[count++] = 0x33;
payload[count++] = 0x44;
payload[count++] = 0x55;
// open application endpoint
aep = AREthOpenLocalApplicationEndpoint(17, 50002);
// create the SOME/IP message itself
messageHandle = AREthCreateMessage(messageId,requestId,protocolVersion,interfaceVersion,messageType,returnCode);
// set message payload
AREthSetData(messageHandle,elcount(payload),payload);
// post two messages
AREthPostMessage(aep,0xFFFFFFFF,40002,messageHandle);
AREthPostMessage(aep,0xFFFFFFFF,40001,messageHandle);
// if CAPL function is left, the two posted messages are send
}