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.
SomeIpCreateMethodCall
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
dword SomeIpCreateMethodCall( dword csiHandle, dword methodId, char onSomeIpMethodResponse [] ); // form 1dword SomeIpCreateMethodCall( dword csiHandle, dword methodId ); // form 2dword SomeIpCreateMethodCall( dword csiHandle, dword methodId, char onSomeIpMethodResponse [], char onSomeIpMethodError [] ); // form 3
Description
This function creates a method call for the consumer. By means of the return value of the function, the method parameters can be set using SomeIpSetValue…. The method is then called using SomeIpCallMethod. Note: If the function is called with the syntax specified in form 1, the method call takes place asynchronously. At the same time, the client is not blocked after the method call until the corresponding response. A synchronous method call is not supported by SOME/IP IL. The syntax specified in form 2 must be used if the fireAndForget parameter was used when the method was created for the provider (see also SomeIpAddMethod). The method call can be removed again using the SomeIpRemoveMethodCall function.Parameters
- csiHandle: Handle of the Consumed Service Instance that was created by SomeIpCreateConsumedServiceInstance.
- methodId: Identifier of the method
- onResponseCallback: This callback function is called when the response is received, see
<OnSomeIpMethodResponse> - onErrorCallback: This callback function is called when a SomeIp error message is received, see
<OnSomeIpMethodError>.
Return Values
- 0: An error occurred. The error can be evaluated using the SomeIpGetLastError function.
- >0: Handle to the method call.