X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Fsessiond-comm%2Fsessiond-comm.h;h=fb959750d1a2290db4cd6758ac99e06c8af47296;hb=e6c533d671c9bcde5d914a18a632b6d0782c4e1a;hp=ab18540e0e93048a91ecc3dc8ec4ce970aa7768a;hpb=9b322352451e6bda9c3dc963df08d2a4d690f7b5;p=lttng-tools.git diff --git a/src/common/sessiond-comm/sessiond-comm.h b/src/common/sessiond-comm/sessiond-comm.h index ab18540e0..fb959750d 100644 --- a/src/common/sessiond-comm/sessiond-comm.h +++ b/src/common/sessiond-comm/sessiond-comm.h @@ -626,6 +626,14 @@ LTTNG_HIDDEN struct lttcomm_relayd_sock *lttcomm_alloc_relayd_sock( LTTNG_HIDDEN int lttcomm_setsockopt_rcv_timeout(int sock, unsigned int msec); LTTNG_HIDDEN int lttcomm_setsockopt_snd_timeout(int sock, unsigned int msec); +LTTNG_HIDDEN int lttcomm_sock_get_port(const struct lttcomm_sock *sock, + uint16_t *port); +/* + * Set a port to an lttcomm_sock. This will have no effect is the socket is + * already bound. + */ +LTTNG_HIDDEN int lttcomm_sock_set_port(struct lttcomm_sock *sock, uint16_t port); + LTTNG_HIDDEN void lttcomm_init(void); /* Get network timeout, in milliseconds */ LTTNG_HIDDEN unsigned long lttcomm_get_network_timeout(void);