Skip to main content

AREthGetSourcePort

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

Description

This function returns the source port (UDP/TCP).

Parameters

  • messageHandle: Handle of the received SOME/IP message. Note: This function can only be called within the OnAREthMessage callback function.

Return Values

  • Source port: In the event of an error, the function returns the value 0. The AREthGetLastError function can then be used to check whether the value is valid or an error has occurred.

Example

See Also: AREthFillValues, AREthGetDestinationAddress, AREthGetDestinationPort, AREthGetInterfaceVersion, AREthGetLength, AREthGetMessageId, AREthGetMessageType, AREthGetProtocol, AREthGetProtocolVersion, AREthGetRequestId, AREthGetReturnCode, AREthGetSourceAddress, AREthGetSourcePort, AREthGetValue…, AREthGetValueDWord, AREthGetValueFloat, AREthGetValueInt64, AREthGetValueLong, AREthGetValuePhys, AREthGetValueQWord, AREthGetValueString, AREthSetRequestId, AREthSetReturnCode, AREthSetValue…, AREthSetValueDWord, AREthSetValueFloat, AREthSetValueInt64, AREthSetValueLong, AREthSetValuePhys, AREthSetValueQWord, AREthSetValueString, Syntax for Database-based Access Paths, Syntax for Predefined Service Discovery (SD) Access Paths