Agora  1.2.0
Agora project
net.h File Reference
#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/types.h>
Include dependency graph for net.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int SetupSocketIpv4 (int port_id, bool set_sock_size, int sock_buf_size)
 
int SetupSocketIpv6 (int port_id, bool set_sock_size, int sock_buf_size)
 
void SetupSockaddrLocalIpv4 (struct sockaddr_in *local_addr, int port_id)
 
void SetupSockaddrLocalIpv6 (struct sockaddr_in6 *local_addr, int port_id)
 
void SetupSockaddrRemoteIpv4 (struct sockaddr_in *remote_addr, int port_id, const char *remote_inet_addr)
 
void SetupSockaddrRemoteIpv6 (struct sockaddr_in6 *remote_addr, int port_id, const char *remote_inet_addr)
 

Function Documentation

◆ SetupSockaddrLocalIpv4()

void SetupSockaddrLocalIpv4 ( struct sockaddr_in *  local_addr,
int  port_id 
)
Here is the caller graph for this function:

◆ SetupSockaddrLocalIpv6()

void SetupSockaddrLocalIpv6 ( struct sockaddr_in6 *  local_addr,
int  port_id 
)

◆ SetupSockaddrRemoteIpv4()

void SetupSockaddrRemoteIpv4 ( struct sockaddr_in *  remote_addr,
int  port_id,
const char *  remote_inet_addr 
)

◆ SetupSockaddrRemoteIpv6()

void SetupSockaddrRemoteIpv6 ( struct sockaddr_in6 *  remote_addr,
int  port_id,
const char *  remote_inet_addr 
)

◆ SetupSocketIpv4()

int SetupSocketIpv4 ( int  port_id,
bool  set_sock_size,
int  sock_buf_size 
)
Here is the call graph for this function:

◆ SetupSocketIpv6()

int SetupSocketIpv6 ( int  port_id,
bool  set_sock_size,
int  sock_buf_size 
)
Here is the call graph for this function: