From 0abe1093ad8f89e562ea583a18e8c4d79a2ff2b2 Mon Sep 17 00:00:00 2001 From: Douglas Young Date: Mon, 7 May 2012 23:20:57 +0100 Subject: Return an error on invalid (e)pgm:// connection This prevents the long-standing issue of an invalid pgm or epgm connection string from causing an assert when the connection is attempted and fails. --- src/pgm_socket.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/pgm_socket.hpp') diff --git a/src/pgm_socket.hpp b/src/pgm_socket.hpp index d2c6e15..0d6fe33 100644 --- a/src/pgm_socket.hpp +++ b/src/pgm_socket.hpp @@ -57,6 +57,8 @@ namespace xs // Initialize PGM network structures (GSI, GSRs). int init (bool udp_encapsulation_, const char *network_); + + static int init_address(const char *network_, struct pgm_addrinfo_t **addr, uint16_t *port_number); // Get receiver fds and store them into user allocated memory. void get_receiver_fds (fd_t *receive_fd_, fd_t *waiting_pipe_fd_); -- cgit v1.2.3