IP_Endpoint::MatchesEndpoint
Valid for: CANoe DE • CANoe4SW DEMethod Syntax
long IP_Endpoint::MatchesEndpoint(IP_Endpoint ipEndpoint);// form 1long IP_Endpoint::MatchesEndpoint(IP_Endpoint ipEndpoint, long prefix);// form 2
Description
Compares two endpoints whereas wildcards matches always. If no transport protocol type is set or the port number is set to 0 this is considered as wildcard. Additionally, the IP address must match according to MatchesAddress. With form 2 only the network address of the IP address will be considered.Parameters
- ipEndpoint: An IP endpoint that may contain wildcards.
- prefix: Prefix in number of bits. Only the first bits specified by prefix are considered.
Return Values
- 0: No match
- 1: Matches