Tool Libs
UMIT-TIROL Institute of Automation and Control Engineering library collection
 
Loading...
Searching...
No Matches
UDP Struct Reference

UDP Server communication backend. More...

#include <comm.h>

Inherits Sink< Buffer< uint8_t > >, and Source< Buffer< uint8_t > >.

Collaboration diagram for UDP:
[legend]

Public Member Functions

 UDP (const char *ip, uint16_t port)
 create UDP Server listening on ip/port
 
bool full () override
 check if sink is full
 
void push (Buffer< uint8_t > &&b) override
 move semantics does not check for space. guard by using 'if (!full) { ... }'
 
bool empty () override
 check if source is empty
 
Buffer< uint8_t > pop () override
 pull object from source does not check for data. guard by using 'if (!empty) { ... }'
 
virtual void push (const T &t)
 copy semantics does not check for space. guard by using 'if (!full) { ... }'
 
virtual void push (T &&)=0
 move semantics does not check for space. guard by using 'if (!full) { ... }'
 
virtual void push (const Buffer< uint8_t > &t)
 copy semantics does not check for space. guard by using 'if (!full) { ... }'
 
void trypush (Buffer< uint8_t > &&t)
 use this if you don't care if it's going to be successful. data gets discarded if sink is full.
 

Detailed Description

UDP Server communication backend.

server will send data to last connected client


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