From 75989e677dae515e2f9efc3a3b0ae3f198380ec6 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Fri, 26 May 2017 12:39:53 +0200 Subject: socket: Add osmo_sock_init2_ofd() function Will be used by osmo-bts-trx Change-Id: I3c655a4af64fb80497a5aaa811cce8005dba9cd9 --- include/osmocom/core/socket.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/osmocom/core') diff --git a/include/osmocom/core/socket.h b/include/osmocom/core/socket.h index e19e8f28..09376c39 100644 --- a/include/osmocom/core/socket.h +++ b/include/osmocom/core/socket.h @@ -31,6 +31,10 @@ int osmo_sock_init2(uint16_t family, uint16_t type, uint8_t proto, int osmo_sock_init_ofd(struct osmo_fd *ofd, int family, int type, int proto, const char *host, uint16_t port, unsigned int flags); +int osmo_sock_init2_ofd(struct osmo_fd *ofd, int family, int type, int proto, + const char *local_host, uint16_t local_port, + const char *remote_host, uint16_t remote_port, unsigned int flags); + int osmo_sock_init_sa(struct sockaddr *ss, uint16_t type, uint8_t proto, unsigned int flags); -- cgit v1.2.3