Agora  1.2.0
Agora project
net.cc File Reference
#include "net.h"
#include <cerrno>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <stdexcept>
Include dependency graph for net.cc:

Functions

void SetSocketBufSize (int socket_local, int sock_buf_size)
 
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

◆ SetSocketBufSize()

void SetSocketBufSize ( int  socket_local,
int  sock_buf_size 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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: