lookupEthernetPort
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
Description
Gets the Ethernet port for a port qualification string.Parameters
- ethernetPortName: The port qualification string
<NetworkName>::<PortName>.
ethernetPort lookupEthernetPort(char[] ethernetPortName);
<NetworkName>::<PortName>.on ethernetPacket *
{
if (this.hwPort == lookupEthernetPort("Ethernet1::ChatClient1"))
{
write("Received a packet on %s", "Ethernet1::ChatClient1");
}
}