![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include "config_unix.h"#include "config_win32.h"#include "compat/platform_pipe.h"#include "rtp/net_udp.h"#include <thread>
Go to the source code of this file.
Classes | |
| struct | params |
Macros | |
| #define | DECLARE_TIMEOUT(name, init_val_s) |
| #define | socket_error(...) |
Typedefs | |
| typedef void * | sockopt_t |
Functions | |
| static fd_t | connect_to_socket (int local_port) |
| static fd_t | open_socket (int *port) |
| void | platform_pipe_close (fd_t pipe) |
| int | platform_pipe_init (fd_t p[2]) |
| static int | system_pipe (fd_t p[2]) |
| return regular pipe if available if our implementation fails | |
| static void * | worker (void *args) |
Definition in file platform_pipe.cpp.
| #define DECLARE_TIMEOUT | ( | name, | |
| init_val_s ) |
Definition at line 55 of file platform_pipe.cpp.
Referenced by connect_to_socket(), and platform_pipe_init().
| #define socket_error | ( | ... | ) |
Definition at line 60 of file platform_pipe.cpp.
Referenced by connect_to_socket(), control_init(), control_thread(), platform_pipe_init(), send_response(), set_sock_opts_and_bind(), udp_async_wait(), udp_do_recv(), udp_get_recv_buf(), udp_get_udp_rx_port(), udp_host_addr6(), udp_init_if(), udp_join_mcast_grp4(), udp_join_mcast_grp6(), udp_leave_mcast_grp4(), udp_leave_mcast_grp6(), udp_port_pair_is_free(), udp_reader(), and udp_set_buf().
| typedef void* sockopt_t |
Definition at line 56 of file platform_pipe.cpp.
|
static |
Definition at line 94 of file platform_pipe.cpp.
References CLOSESOCKET, DECLARE_TIMEOUT, INVALID_SOCKET, and socket_error.
Referenced by worker().
|
static |
Definition at line 63 of file platform_pipe.cpp.
References CLOSESOCKET, INVALID_SOCKET, and len.
Referenced by platform_pipe_init().
| void platform_pipe_close | ( | fd_t | pipe | ) |
Definition at line 227 of file platform_pipe.cpp.
References CLOSESOCKET.
Referenced by state_root::~state_root(), control_done(), control_thread(), udp_exit(), udp_reader(), and ug_control_connection_done().
| int platform_pipe_init | ( | fd_t | p[2] | ) |
Definition at line 155 of file platform_pipe.cpp.
References CLOSESOCKET, DECLARE_TIMEOUT, INVALID_SOCKET, open_socket(), params::port, params::sock, socket_error, system_pipe(), and worker().
Referenced by state_root::state_root(), control_start(), udp_init_if(), and ug_control_connection_init().

|
static |
return regular pipe if available if our implementation fails
Definition at line 144 of file platform_pipe.cpp.
Referenced by platform_pipe_init().
|
static |
Definition at line 135 of file platform_pipe.cpp.
References connect_to_socket(), params::port, and params::sock.
Referenced by platform_pipe_init().
