W60X_Arduino: UdpContext Class Reference

Arduino W60X

W60X_Arduino
UdpContext Class Reference

Public Types

typedef std::function< void(void)> rxhandler_t
 

Public Member Functions

void ref ()
 
void unref ()
 
bool connect (ip_addr_t addr, uint16_t port)
 
bool listen (ip_addr_t addr, uint16_t port)
 
void disconnect ()
 
void setMulticastInterface (const ip_addr_t &addr)
 
void setMulticastTTL (int ttl)
 
void onRx (rxhandler_t handler)
 
size_t getSize () const
 
size_t tell () const
 
void seek (const size_t pos)
 
bool isValidOffset (const size_t pos) const
 
uint32_t getRemoteAddress ()
 
uint16_t getRemotePort ()
 
uint32_t getDestAddress ()
 
uint16_t getLocalPort ()
 
bool next ()
 
int read ()
 
size_t read (char *dst, size_t size)
 
int peek ()
 
void flush ()
 
size_t append (const char *data, size_t size)
 
bool send (ip_addr_t *addr=0, uint16_t port=0)
 
Generated by   doxygen 1.8.14