summaryrefslogtreecommitdiff
path: root/src/pgm_socket.hpp
diff options
context:
space:
mode:
authorDouglas Young <rcxdude@gmail.com>2012-05-07 23:20:57 +0100
committerMartin Sustrik <sustrik@250bpm.com>2012-05-09 07:50:19 +0200
commit0abe1093ad8f89e562ea583a18e8c4d79a2ff2b2 (patch)
tree3b5edbfa6ac715f777678098cc96e09430ebe9c3 /src/pgm_socket.hpp
parent1dbcf1a01f0bb704db85d3117baafe86ce4d2d8e (diff)
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.
Diffstat (limited to 'src/pgm_socket.hpp')
-rw-r--r--src/pgm_socket.hpp2
1 files changed, 2 insertions, 0 deletions
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_);