Skip to content

cvedia::net::Broadcast

Public Functions

Name
Broadcast() =default
Broadcast(bool localOnly, u_short broadcastPort =BROADCAST_PORT)
~Broadcast() =default
Broadcast(const Broadcast & ) =delete
Broadcast & operator=(const Broadcast & ) =delete
Broadcast(Broadcast && ) =delete
Broadcast & operator=(Broadcast && ) =delete
bool initialize()
bool shutdown()
bool startResponder()
bool isResponderRunning() const
bool stopResponder()
std::vector< std::pair< std::string, std::string > > broadcastAndGetResponse(std::string const & message, int maxWaitTime) const
void registerCallback(std::string const & function, BroadcastCallbackHandler callback)
void unregisterCallback(std::string const & function)
BroadcastCallbackHandler getCallback(std::string function)
void clearCallbacks()
void setPaused(bool paused)

Public Functions Documentation

function Broadcast

Broadcast() =default

function Broadcast

inline explicit Broadcast(
    bool localOnly,
    u_short broadcastPort =BROADCAST_PORT
)

function ~Broadcast

~Broadcast() =default

function Broadcast

Broadcast(
    const Broadcast & 
) =delete

function operator=

Broadcast & operator=(
    const Broadcast & 
) =delete

function Broadcast

Broadcast(
    Broadcast && 
) =delete

function operator=

Broadcast & operator=(
    Broadcast && 
) =delete

function initialize

inline bool initialize()

function shutdown

inline bool shutdown()

function startResponder

inline bool startResponder()

function isResponderRunning

inline bool isResponderRunning() const

function stopResponder

inline bool stopResponder()

function broadcastAndGetResponse

inline std::vector< std::pair< std::string, std::string > > broadcastAndGetResponse(
    std::string const & message,
    int maxWaitTime
) const

function registerCallback

inline void registerCallback(
    std::string const & function,
    BroadcastCallbackHandler callback
)

function unregisterCallback

inline void unregisterCallback(
    std::string const & function
)

function getCallback

inline BroadcastCallbackHandler getCallback(
    std::string function
)

function clearCallbacks

inline void clearCallbacks()

function setPaused

inline void setPaused(
    bool paused
)

Updated on 2024-11-15 at 16:17:52 +0000