To implement a client program that calls a method of an endpoint provided by a server program:
*.edl.cpp.h
) of the client program description.*.idl.cpp.h
).sysroot-*-kos/include/kosipc/application.h
sysroot-*-kos/include/kosipc/api.h
sysroot-*-kos/include/kosipc/connect_static_channel.h
kosipc::MakeApplicationAutodetect()
function. (You can also use the kosipc::MakeApplication()
and kosipc::MakeApplicationPureClient()
functions.)RIID
) by calling the kosipc::ConnectStaticChannel()
function.This function gets the name of the IPC channel (from the init.yaml file) and the qualified name of the endpoint (from the CDL and EDL descriptions of the solution component).
MakeProxy()
function.To implement a server program that provides endpoints to other programs:
*.edl.cpp.h
containing a description of the component structure of the program, including all provided endpoints.sysroot-*-kos/include/kosipc/event_loop.h
sysroot-*-kos/include/kosipc/api.h
sysroot-*-kos/include/kosipc/serve_static_channel.h
kosipc::MakeApplicationAutodetect()
function.kosipc::components::Root
structure, which describes the component structure of the program and describes the interfaces of all endpoints provided by the program.kosipc::components::Root
structure to the objects that implement the corresponding endpoints.Fields of the Root
structure replicate the hierarchy of components and endpoints that are collectively defined by the CDL and EDL files.
ServeStaticChannel()
function.This function gets the name of the IPC channel (from the init.yaml file) and the structure created at step 5.
kosipc::EventLoop
object by calling the MakeEventLoop()
function.Run()
method of the kosipc::EventLoop
object.