Skip to main content

Documentation Index

Fetch the complete documentation index at: https://notevil.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

AREthCloseLocalApplicationEndpoint

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

LONG AREthCloseLocalApplicationEndpoint( dword aepHandle );

Description

Closes an Application Endpoint that was previously opened with AREthOpenLocalApplicationEndpoint. 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 = AREthOpenLocalApplicationEndpoint(17, 50002);

  // ... do something here

  // close the Application Endpoint
  AREthCloseLocalApplicationEndpoint(aep);
}
See Also: AREthCloseLocalApplicationEndpoint, AREthOpenLocalApplicationEndpoint, AREthTlsAuthenticateAsClientWithConfiguration, AREthTlsAuthenticateAsServerWithConfiguration