fehQlibs 27
Qlibs
Loading...
Searching...
No Matches
socket_bind.c File Reference

binding a socket to a local resource 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_bind.c:

Go to the source code of this file.

Functions

int socket_bind4 (int s, const char ip[4], uint16 port)
 
int socket_bind4_reuse (int s, const char ip[4], uint16 port)
 
void socket_tryreservein (int s, int size)
 
int socket_bind6 (int s, const char ip[16], uint16 port, uint32 scope_id)
 
int socket_bind6_reuse (int s, const char ip[16], uint16 port, uint32 scope_id)
 
int socket_bind (int s, const char ip[16], uint16 port, uint32 scope_id)
 
int socket_bind_reuse (int s, const char ip[16], uint16 port, uint32 scope_id)
 

Detailed Description

binding a socket to a local resource

Author
djb, fefe, feh qmail, djbdns, ucspi-tcp6

Definition in file socket_bind.c.

Function Documentation

◆ socket_bind()

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

Definition at line 65 of file socket_bind.c.

Here is the call graph for this function:

◆ socket_bind4()

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

Definition at line 16 of file socket_bind.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ socket_bind4_reuse()

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

Definition at line 28 of file socket_bind.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ socket_bind6()

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

Definition at line 44 of file socket_bind.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ socket_bind6_reuse()

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

Definition at line 58 of file socket_bind.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ socket_bind_reuse()

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

Definition at line 73 of file socket_bind.c.

Here is the call graph for this function:

◆ socket_tryreservein()

void socket_tryreservein ( int s,
int size )

Definition at line 36 of file socket_bind.c.