17#ifndef __ROGUE_PROTOCOLS_UDP_CLIENT_H__
18#define __ROGUE_PROTOCOLS_UDP_CLIENT_H__
22#include <netinet/in.h>
23#include <netinet/ip.h>
25#include <sys/socket.h>
61 void runThread(std::weak_ptr<int>);
79 static std::shared_ptr<rogue::protocols::udp::Client>
create(std::string host, uint16_t port,
bool jumbo);
98 Client(std::string host, uint16_t port,
bool jumbo);
120 void acceptFrame(std::shared_ptr<rogue::interfaces::stream::Frame> frame);
124typedef std::shared_ptr<rogue::protocols::udp::Client>
ClientPtr;
static std::shared_ptr< rogue::interfaces::stream::Master > create()
Creates a stream master.
Stream slave endpoint and default frame pool.
UDP stream endpoint that sends to and receives from a remote host.
static void setup_python()
Registers Python bindings for this class.
void acceptFrame(std::shared_ptr< rogue::interfaces::stream::Frame > frame)
Accepts an outbound stream frame and transmits it as UDP datagrams.
~Client()
Destroys the UDP client endpoint.
void stop()
Stops the UDP client endpoint.
Shared UDP transport base for stream client/server endpoints.
std::shared_ptr< rogue::protocols::udp::Client > ClientPtr