fehQlibs 26
Qlibs
Loading...
Searching...
No Matches
Functions
socket_setup.c File Reference

setup listening socket More...

#include <sys/types.h>
#include <sys/param.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include "byte.h"
#include "socket_if.h"
#include "ip.h"
Include dependency graph for socket_setup.c:

Go to the source code of this file.

Functions

int socket_accept (int s, char ip[16], uint16 *port, uint32 *scope_id)
 
int socket_accept4 (int s, char ip[4], uint16 *port)
 
int socket_listen (int s, int backlog)
 
int socket_ipoptionskill (int s)
 
int socket_ip6anycast (int s)
 
int socket_dualstack (int s)
 
int socket_nodualstack (int s)
 

Detailed Description

setup listening socket

Authors
djb, feh ucspi-tcp6

Definition in file socket_setup.c.

Function Documentation

◆ socket_accept()

int socket_accept ( int  s,
char  ip[16],
uint16 port,
uint32 scope_id 
)

Definition at line 16 of file socket_setup.c.

Here is the call graph for this function:

◆ socket_accept4()

int socket_accept4 ( int  s,
char  ip[4],
uint16 port 
)

Definition at line 40 of file socket_setup.c.

Here is the call graph for this function:

◆ socket_dualstack()

int socket_dualstack ( int  s)

Definition at line 87 of file socket_setup.c.

◆ socket_ip6anycast()

int socket_ip6anycast ( int  s)

Definition at line 70 of file socket_setup.c.

◆ socket_ipoptionskill()

int socket_ipoptionskill ( int  s)

Definition at line 60 of file socket_setup.c.

◆ socket_listen()

int socket_listen ( int  s,
int  backlog 
)

Definition at line 55 of file socket_setup.c.

◆ socket_nodualstack()

int socket_nodualstack ( int  s)

Definition at line 94 of file socket_setup.c.