Skip to main content

SomeIpCloseLocalApplicationEndpoint

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

LONG SomeIpCloseLocalApplicationEndpoint( dword aepHandle );

Description

Closes an Application Endpoint that was previously opened with SomeIpOpenLocalApplicationEndpoint. Services and the objects assigned to the services (Eventgroups, Events, Fields, and Methods) are removed when the Application Endpoint is closed. If the Application Endpoint has to be reopened, all objects must be created again.

Parameters

Return Values

  • 0: The function was successfully executed
  • >0: Error code

Example

on key 't'
{
  DWORD aep; // Application Endpoint handle

  // open an Application Endpoint
  aep = SomeIpOpenLocalApplicationEndpoint(17, 50002);

  // ... do something here

  // close the Application Endpoint
  SomeIpCloseLocalApplicationEndpoint(aep);
}
See Also