diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-01-26 00:03:10 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-01-27 10:28:58 +0100 |
commit | 48f55833476439fc45fa4eaa4327beccdc92d44b (patch) | |
tree | 599c70ba009bdf5dda3b88264179416051a54274 /include/osmocom/core/socket.h | |
parent | 319f321da54c39b6d17d02e209407f943d43044c (diff) |
socket: Introduce function to obtain socket name
Using this function, one can obtain a human-readable string identifying
the host and port names of the socket.
Change-Id: Ib5de5c7b9effe1b0a363e4473a7be7fa38ca6ef3
Diffstat (limited to 'include/osmocom/core/socket.h')
-rw-r--r-- | include/osmocom/core/socket.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osmocom/core/socket.h b/include/osmocom/core/socket.h index 6ef0912e..4f00e300 100644 --- a/include/osmocom/core/socket.h +++ b/include/osmocom/core/socket.h @@ -38,4 +38,6 @@ int osmo_sock_unix_init(uint16_t type, uint8_t proto, int osmo_sock_unix_init_ofd(struct osmo_fd *ofd, uint16_t type, uint8_t proto, const char *socket_path, unsigned int flags); +char *osmo_sock_get_name(void *ctx, int fd); + /*! @} */ |