17#ifndef __ROGUE_PROTOCOLS_UDP_SERVER_H__
18#define __ROGUE_PROTOCOLS_UDP_SERVER_H__
22#include <netinet/in.h>
23#include <netinet/ip.h>
25#include <sys/socket.h>
58 struct sockaddr_in locAddr_;
61 void runThread(std::weak_ptr<int>);
78 static std::shared_ptr<rogue::protocols::udp::Server>
create(uint16_t port,
bool jumbo);
97 Server(uint16_t port,
bool jumbo);
126 void acceptFrame(std::shared_ptr<rogue::interfaces::stream::Frame> frame);
130typedef std::shared_ptr<rogue::protocols::udp::Server>
ServerPtr;
static std::shared_ptr< rogue::interfaces::stream::Master > create()
Creates a stream master.
Stream slave endpoint and default frame pool.
Shared UDP transport base for stream client/server endpoints.
UDP stream endpoint that listens on a local UDP port.
~Server()
Destroys the UDP server endpoint.
void acceptFrame(std::shared_ptr< rogue::interfaces::stream::Frame > frame)
Accepts an outbound stream frame and transmits it as UDP datagrams.
void stop()
Stops the UDP server endpoint.
static void setup_python()
Registers Python bindings for this class.
uint32_t getPort()
Returns bound local UDP port number.
std::shared_ptr< rogue::protocols::udp::Server > ServerPtr