Program Listing for File transport.h
↰ Return to documentation for file (api/include/pntos/plugins/transport.h)
#pragma once
#include <pntos/plugins/common.h>
#ifdef __cplusplus
extern "C" {
#endif
PNTOS_ASSUME_NONNULL_BEGIN
typedef struct PntosTransportPlugin {
PntosCommonPlugin common;
void (*start_listening)(struct PntosTransportPlugin* self);
void (*stop_listening)(struct PntosTransportPlugin* self);
void (*broadcast_message)(struct PntosTransportPlugin* self,
PntosMessage* message,
char* PNTOS_NULLABLE channel_name);
} PntosTransportPlugin;
PNTOS_ASSUME_NONNULL_END
#ifdef __cplusplus
}
#endif