diff options
Diffstat (limited to 'include/socket_if.h')
-rw-r--r-- | include/socket_if.h | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/include/socket_if.h b/include/socket_if.h index 54cfa5f..3681d29 100644 --- a/include/socket_if.h +++ b/include/socket_if.h @@ -18,52 +18,52 @@ * - enlarged usage for ipv4socket -> dual bind IPv4/IPv6 */ -#define __APPLE_USE_RFC_3542 /* MacOS Anycast support */ +#define __APPLE_USE_RFC_3542 /* MacOS Anycast support */ #include "uint_t.h" /* IPv4 only */ -extern int socket_accept4(int,char [4],uint16 *); -extern int socket_bind4(int,const char [4],uint16); -extern int socket_bind4_reuse(int,const char [4],uint16); -extern int socket_connect4(int,const char [4],uint16); -extern int socket_send4(int,const char *,unsigned int,const char [4],uint16); -extern int socket_broadcast(int,const char *,unsigned int,uint16); +extern int socket_accept4(int, char[4], uint16 *); +extern int socket_bind4(int, const char[4], uint16); +extern int socket_bind4_reuse(int, const char[4], uint16); +extern int socket_connect4(int, const char[4], uint16); +extern int socket_send4(int, const char *, unsigned int, const char[4], uint16); +extern int socket_broadcast(int, const char *, unsigned int, uint16); /* Backward compatibility */ -#define socket_local4 socket_local +#define socket_local4 socket_local #define socket_remote4 socket_remote /* IPv6 only */ -extern int socket_bind6(int,const char [16],uint16,uint32); -extern int socket_bind6_reuse(int,const char [16],uint16,uint32); -extern int socket_connect6(int,const char [16],uint16,uint32); -extern int socket_send6(int,const char *,unsigned int,const char [16],uint16,uint32); -extern const char* socket_getifname(uint32); +extern int socket_bind6(int, const char[16], uint16, uint32); +extern int socket_bind6_reuse(int, const char[16], uint16, uint32); +extern int socket_connect6(int, const char[16], uint16, uint32); +extern int socket_send6(int, const char *, unsigned int, const char[16], uint16, uint32); +extern const char *socket_getifname(uint32); extern uint32 socket_getifidx(const char *); extern int socket_ip6optionskill(int); extern int socket_ip6anycast(int); /* Common IPv4 & IPv6 */ -extern int socket_accept(int,char [16],uint16 *,uint32 *); -extern int socket_bind(int,const char [16],uint16,uint32); -extern int socket_bind_reuse(int,const char [16],uint16,uint32); -extern int socket_connect(int,const char [16],uint16,uint32); +extern int socket_accept(int, char[16], uint16 *, uint32 *); +extern int socket_bind(int, const char[16], uint16, uint32); +extern int socket_bind_reuse(int, const char[16], uint16, uint32); +extern int socket_connect(int, const char[16], uint16, uint32); extern int socket_connected(int); -extern int socket_listen(int,int); -extern int socket_local(int,char [16],uint16 *,uint32 *); -extern int socket_recv(int,char *,unsigned int,char [16],uint16 *,uint32 *); -extern int socket_remote(int,char [16],uint16 *,uint32 *); -extern int socket_send(int,const char *,unsigned int,const char [16],uint16,uint32); -extern void socket_tryreservein(int,int); +extern int socket_listen(int, int); +extern int socket_local(int, char[16], uint16 *, uint32 *); +extern int socket_recv(int, char *, unsigned int, char[16], uint16 *, uint32 *); +extern int socket_remote(int, char[16], uint16 *, uint32 *); +extern int socket_send(int, const char *, unsigned int, const char[16], uint16, uint32); +extern void socket_tryreservein(int, int); extern int socket_ipoptionskill(int); extern int socket_dualstack(int); extern int socket_nodualstack(int); /* Backward compatibility */ #define socket_accept6 socket_accept -#define socket_local6 socket_local -#define socket_recv6 socket_recv +#define socket_local6 socket_local +#define socket_recv6 socket_recv #define socket_remote6 socket_remote /* TCP */ |