Skip to main content

DoIP_SetVehicleTcpPort

Valid for: CANoe DE Note The following DoIP CAPL function is only available with the modeling library DoIP.dll and eventually an appropriate implementation of the CAPL Callback Interface. Information about the DoIP DLL and the CAPL Callback Interface you find here:

Function Syntax

void DoIP_SetVehicleTcpPort( dword port);

Description

Sets the TCP port (TCP_DATA) to be used by the DoIP layer. This function must be called in on preStart.

Parameters

  • port: The TCP_DATA port of the DoIP layer.

Return Values

Example

dword port;
port = DiagGetCommParameter( "DoIP.VEHICLE_TCP_Data");
// Set the vehicle TCP port
DoIP_SetVehicleTcpPort( port);
DiagGetCommParameter