WPILibC++ 2024.3.2
wpi::UDPClient Class Reference

#include <wpinet/UDPClient.h>

Public Member Functions

 UDPClient (Logger &logger)
 
 UDPClient (std::string_view address, Logger &logger)
 
 UDPClient (const UDPClient &other)=delete
 
 UDPClient (UDPClient &&other)
 
 ~UDPClient ()
 
UDPClientoperator= (const UDPClient &other)=delete
 
UDPClientoperator= (UDPClient &&other)
 
int start ()
 
int start (int port)
 
void shutdown ()
 
int send (std::span< const uint8_t > data, std::string_view server, int port)
 
int send (std::string_view data, std::string_view server, int port)
 
int receive (uint8_t *data_received, int receive_len)
 
int receive (uint8_t *data_received, int receive_len, SmallVectorImpl< char > *addr_received, int *port_received)
 
int set_timeout (double timeout)
 

Constructor & Destructor Documentation

◆ UDPClient() [1/4]

wpi::UDPClient::UDPClient ( Logger logger)
explicit

◆ UDPClient() [2/4]

wpi::UDPClient::UDPClient ( std::string_view  address,
Logger logger 
)

◆ UDPClient() [3/4]

wpi::UDPClient::UDPClient ( const UDPClient other)
delete

◆ UDPClient() [4/4]

wpi::UDPClient::UDPClient ( UDPClient &&  other)

◆ ~UDPClient()

wpi::UDPClient::~UDPClient ( )

Member Function Documentation

◆ operator=() [1/2]

UDPClient & wpi::UDPClient::operator= ( const UDPClient other)
delete

◆ operator=() [2/2]

UDPClient & wpi::UDPClient::operator= ( UDPClient &&  other)

◆ receive() [1/2]

int wpi::UDPClient::receive ( uint8_t *  data_received,
int  receive_len 
)

◆ receive() [2/2]

int wpi::UDPClient::receive ( uint8_t *  data_received,
int  receive_len,
SmallVectorImpl< char > *  addr_received,
int *  port_received 
)

◆ send() [1/2]

int wpi::UDPClient::send ( std::span< const uint8_t >  data,
std::string_view  server,
int  port 
)

◆ send() [2/2]

int wpi::UDPClient::send ( std::string_view  data,
std::string_view  server,
int  port 
)

◆ set_timeout()

int wpi::UDPClient::set_timeout ( double  timeout)

◆ shutdown()

void wpi::UDPClient::shutdown ( )

◆ start() [1/2]

int wpi::UDPClient::start ( )

◆ start() [2/2]

int wpi::UDPClient::start ( int  port)

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