/usr/include/inn/network-innbind.h is in inn2-dev 2.6.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | /* $Id: network-innbind.h 9914 2015-07-07 16:34:36Z iulius $
*
* Prototypes for network connection utility functions using innbind.
*
* This file is heavily based on include/inn/network.h.
*/
#ifndef INN_NETWORK_INNBIND_H
#define INN_NETWORK_INNBIND_H 1
#include <inn/defines.h>
#include "inn/portable-macros.h"
#include "inn/portable-socket.h"
#include "inn/portable-stdbool.h"
#include <sys/types.h>
BEGIN_DECLS
/*
* Create a socket of the given type and bind it to the specified address and
* port (either IPv4 or IPv6), returning the resulting file descriptor or
* INVALID_SOCKET on error. Errors are reported using warn/syswarn. To bind
* to all interfaces, use "any" or "all" for address.
*/
socket_type network_innbind_ipv4(int type, const char *addr, unsigned short port)
__attribute__((__nonnull__));
socket_type network_innbind_ipv6(int type, const char *addr, unsigned short port)
__attribute__((__nonnull__));
/*
* Create and bind sockets of the given type for every local address (normally
* two, one for IPv4 and one for IPv6, if IPv6 support is enabled). If IPv6
* is not enabled, just one socket will be created and bound to the IPv4
* wildcard address. Returns true on success and false (setting errno) on
* failure.
*
* fds will be set to an array containing the resulting file descriptors, with
* count holding the count returned.
*/
bool network_innbind_all(int type, unsigned short port, socket_type **fds,
unsigned int *count)
__attribute__((__nonnull__));
END_DECLS
#endif /* INN_NETWORK_INNBIND_H */
|