WPILibC++ 2024.3.2
wpi::MulticastServiceAnnouncer Class Reference

#include <wpinet/MulticastServiceAnnouncer.h>

Public Member Functions

 MulticastServiceAnnouncer (std::string_view serviceName, std::string_view serviceType, int port, std::span< const std::pair< std::string, std::string > > txt)
 Creates a MulticastServiceAnnouncer. More...
 
 MulticastServiceAnnouncer (std::string_view serviceName, std::string_view serviceType, int port, std::span< const std::pair< std::string_view, std::string_view > > txt)
 Creates a MulticastServiceAnnouncer. More...
 
 MulticastServiceAnnouncer (std::string_view serviceName, std::string_view serviceType, int port)
 Creates a MulticastServiceAnnouncer. More...
 
 ~MulticastServiceAnnouncer () noexcept
 
void Start ()
 Starts multicast service announcer. More...
 
void Stop ()
 Stops multicast service announcer. More...
 
bool HasImplementation () const
 Returns true if there's a multicast service announcer implementation. More...
 

Constructor & Destructor Documentation

◆ MulticastServiceAnnouncer() [1/3]

wpi::MulticastServiceAnnouncer::MulticastServiceAnnouncer ( std::string_view  serviceName,
std::string_view  serviceType,
int  port,
std::span< const std::pair< std::string, std::string > >  txt 
)

Creates a MulticastServiceAnnouncer.

Parameters
serviceNameservice name
serviceTypeservice type
portport
txttxt

◆ MulticastServiceAnnouncer() [2/3]

wpi::MulticastServiceAnnouncer::MulticastServiceAnnouncer ( std::string_view  serviceName,
std::string_view  serviceType,
int  port,
std::span< const std::pair< std::string_view, std::string_view > >  txt 
)

Creates a MulticastServiceAnnouncer.

Parameters
serviceNameservice name
serviceTypeservice type
portport
txttxt

◆ MulticastServiceAnnouncer() [3/3]

wpi::MulticastServiceAnnouncer::MulticastServiceAnnouncer ( std::string_view  serviceName,
std::string_view  serviceType,
int  port 
)

Creates a MulticastServiceAnnouncer.

Parameters
serviceNameservice name
serviceTypeservice type
portport

◆ ~MulticastServiceAnnouncer()

wpi::MulticastServiceAnnouncer::~MulticastServiceAnnouncer ( )
noexcept

Member Function Documentation

◆ HasImplementation()

bool wpi::MulticastServiceAnnouncer::HasImplementation ( ) const

Returns true if there's a multicast service announcer implementation.

Returns
True if there's a multicast service announcer implementation.

◆ Start()

void wpi::MulticastServiceAnnouncer::Start ( )

Starts multicast service announcer.

◆ Stop()

void wpi::MulticastServiceAnnouncer::Stop ( )

Stops multicast service announcer.


The documentation for this class was generated from the following file: