vectorgrp / XCPlite

Simple implementation of the ASAM XCP on Ethernet protocol
MIT License
171 stars 93 forks source link

Multiple instances for c++ application #28

Closed truecarfield closed 5 months ago

truecarfield commented 2 years ago

Hello,

currently in the C++ implementation the xcp object is based on singleton pattern, because the C-style core code in xcpLite.c. I wonder is it possible to activate multiple xcp servers for c++ application class in one process? And implement the user defined callbacks in XcpAppl.c this way:

ApplXcpGetBaseAddr(void* obj);

thus using void* to to get access to the application class instance. Maybe it is already planned in V6? Thank you for your attention!

Best regards