ucspi-ssl  0.99e
TLS encryption for IPv6 communication
Functions | Variables
socket.h File Reference
#include "uint16.h"
#include "uint32.h"
Include dependency graph for socket.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int socket_tcp (void)
 
int socket_udp (void)
 
int socket_tcp6 (void)
 
int socket_udp6 (void)
 
int socket_connect4 (int, const char *, uint16)
 
int socket_connect6 (int s, const char *ip, uint16 port, uint32 scope_id)
 
int socket_connected (int)
 
int socket_bind4 (int, const char *, uint16)
 
int socket_bind4_reuse (int, char *, uint16)
 
int socket_bind6 (int s, const char *ip, uint16 port, uint32 scope_id)
 
int socket_bind6_reuse (int s, const char *, uint16 port, uint32 scope_id)
 
int socket_listen (int, int)
 
int socket_accept4 (int, char *, uint16 *)
 
int socket_accept6 (int s, char *ip, uint16 *port, uint32 *scope_id)
 
int socket_recv4 (int, char *, int, char *, uint16 *)
 
int socket_send4 (int, const char *, int, const char *, uint16)
 
int socket_recv6 (int s, char *buf, unsigned int len, char *ip, uint16 *port, uint32 *scope_id)
 
int socket_send6 (int s, const char *buf, unsigned int len, const char *ip, uint16 port, uint32 scope_id)
 
int socket_local4 (int, char *, uint16 *)
 
int socket_remote4 (int, char *, uint16 *)
 
int socket_local6 (int s, char *ip, uint16 *port, uint32 *scope_id)
 
int socket_remote6 (int s, char *ip, uint16 *port, uint32 *scope_id)
 
int socket_tcpnodelay (int)
 
int socket_ipoptionskill (int)
 
int socket_ip6optionskill (int)
 
int socket_broadcast (int)
 
int socket_mcjoin4 (int, char *, char *)
 
int socket_mcjoin6 (int, char *, int)
 
int socket_mcleave4 (int, char *)
 
int socket_mcleave6 (int, char *)
 
int socket_mcttl4 (int, char)
 
int socket_mcttl6 (int, char)
 
int socket_mcloop4 (int, char)
 
int socket_mcloop6 (int, char)
 
const char * socket_getifname (uint32 interface)
 
uint32 socket_getifidx (const char *ifname)
 
void socket_tryreservein (int, int)
 

Variables

int ipv4
 

Function Documentation

◆ socket_accept4()

int socket_accept4 ( int  ,
char *  ,
uint16  
)

◆ socket_accept6()

int socket_accept6 ( int  s,
char *  ip,
uint16 port,
uint32 *  scope_id 
)
Here is the caller graph for this function:

◆ socket_bind4()

int socket_bind4 ( int  ,
const char *  ,
uint16   
)

◆ socket_bind4_reuse()

int socket_bind4_reuse ( int  ,
char *  ,
uint16   
)

◆ socket_bind6()

int socket_bind6 ( int  s,
const char *  ip,
uint16  port,
uint32  scope_id 
)

◆ socket_bind6_reuse()

int socket_bind6_reuse ( int  s,
const char *  ,
uint16  port,
uint32  scope_id 
)

◆ socket_broadcast()

int socket_broadcast ( int  )

◆ socket_connect4()

int socket_connect4 ( int  ,
const char *  ,
uint16   
)

◆ socket_connect6()

int socket_connect6 ( int  s,
const char *  ip,
uint16  port,
uint32  scope_id 
)

◆ socket_connected()

int socket_connected ( int  )

Definition at line 21 of file socket_conn.c.

◆ socket_getifidx()

uint32 socket_getifidx ( const char *  ifname)

Definition at line 6 of file socket_getifidx.c.

Here is the caller graph for this function:

◆ socket_getifname()

const char* socket_getifname ( uint32  interface)

Definition at line 8 of file socket_getifname.c.

◆ socket_ip6optionskill()

int socket_ip6optionskill ( int  )

Definition at line 7 of file socket_opts6.c.

◆ socket_ipoptionskill()

int socket_ipoptionskill ( int  )

Definition at line 7 of file socket_opts.c.

◆ socket_listen()

int socket_listen ( int  ,
int   
)

Definition at line 7 of file socket_listen.c.

◆ socket_local4()

int socket_local4 ( int  ,
char *  ,
uint16  
)
Here is the caller graph for this function:

◆ socket_local6()

int socket_local6 ( int  s,
char *  ip,
uint16 port,
uint32 *  scope_id 
)
Here is the caller graph for this function:

◆ socket_mcjoin4()

int socket_mcjoin4 ( int  ,
char *  ,
char *   
)

◆ socket_mcjoin6()

int socket_mcjoin6 ( int  ,
char *  ,
int   
)

◆ socket_mcleave4()

int socket_mcleave4 ( int  ,
char *   
)

◆ socket_mcleave6()

int socket_mcleave6 ( int  ,
char *   
)

◆ socket_mcloop4()

int socket_mcloop4 ( int  ,
char   
)

◆ socket_mcloop6()

int socket_mcloop6 ( int  ,
char   
)

◆ socket_mcttl4()

int socket_mcttl4 ( int  ,
char   
)

◆ socket_mcttl6()

int socket_mcttl6 ( int  ,
char   
)

◆ socket_recv4()

int socket_recv4 ( int  ,
char *  ,
int  ,
char *  ,
uint16  
)

◆ socket_recv6()

int socket_recv6 ( int  s,
char *  buf,
unsigned int  len,
char *  ip,
uint16 port,
uint32 *  scope_id 
)

◆ socket_remote4()

int socket_remote4 ( int  ,
char *  ,
uint16  
)

◆ socket_remote6()

int socket_remote6 ( int  s,
char *  ip,
uint16 port,
uint32 *  scope_id 
)

◆ socket_send4()

int socket_send4 ( int  ,
const char *  ,
int  ,
const char *  ,
uint16   
)

◆ socket_send6()

int socket_send6 ( int  s,
const char *  buf,
unsigned int  len,
const char *  ip,
uint16  port,
uint32  scope_id 
)

◆ socket_tcp()

int socket_tcp ( void  )

Definition at line 9 of file socket_tcp.c.

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

◆ socket_tcp6()

int socket_tcp6 ( void  )

Definition at line 18 of file socket_tcp6.c.

Here is the call graph for this function:

◆ socket_tcpnodelay()

int socket_tcpnodelay ( int  )

Definition at line 7 of file socket_delay.c.

◆ socket_tryreservein()

void socket_tryreservein ( int  ,
int   
)

Definition at line 27 of file socket_bind.c.

◆ socket_udp()

int socket_udp ( void  )

Definition at line 9 of file socket_udp.c.

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

◆ socket_udp6()

int socket_udp6 ( void  )

Definition at line 12 of file socket_udp6.c.

Here is the call graph for this function:

Variable Documentation

◆ ipv4

int ipv4

Definition at line 15 of file socket_tcp6.c.