Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Inter-Event GClasses

RPC-like communication between yunos over the network. A local gobj subscribes to a remote service as if it were local.

Source: kernel/c/root-linux/src/c_ievent_cli.c, c_ievent_srv.c


C_IEVENT_CLI

Inter-event client — connects to a remote yuno and simulates its service as a local gobj. Handles identity-card exchange, authentication, and subscription management.

PropertyValue
StatesST_STOPPED, ST_DISCONNECTED, ST_WAIT_CONNECTED, ST_WAIT_IDENTITY_CARD, ST_SESSION, ST_SUBSCRIBED
Input eventsEV_SEND_MESSAGE, EV_ON_MESSAGE, EV_ON_OPEN, EV_ON_CLOSE, EV_TIMEOUT, EV_DROP, EV_STOPPED
Output eventsEV_ON_MESSAGE, EV_ON_OPEN, EV_ON_CLOSE

Key attributes

AttributeTypeDescription
wanted_yuno_rolestringRole of the remote yuno to connect to.
wanted_yuno_namestringName of the remote yuno.
wanted_yuno_servicestringService name on the remote yuno.
urlstringConnection URL.
jwtstringJSON Web Token for authentication.
timeout_idackintegerIdentity-card ack timeout in seconds.

C_IEVENT_SRV

Inter-event server — entry gate for authenticated service access. Manages incoming connections, routes inter-event messages to local services, and handles WebSocket upgrade.

PropertyValue
StatesST_STOPPED, ST_DISCONNECTED, ST_WAIT_IDENTITY_CARD, ST_SESSION
Input eventsEV_ON_MESSAGE, EV_ON_OPEN, EV_ON_CLOSE, EV_TIMEOUT, EV_DROP, EV_STOPPED
Output eventsEV_ON_MESSAGE, EV_ON_OPEN, EV_ON_CLOSE

Key attributes

AttributeTypeDescription
__username__stringAuthenticated username (read-only).
__session_id__stringSession identifier (read-only).
jwt_payloadjsonDecoded JWT payload.
client_yuno_rolestringRole of the connected client yuno.
client_yuno_namestringName of the connected client yuno.
this_servicestringLocal service name this gate serves.
authenticatedboolWhether the connection is authenticated.