Project Alice
Loading...
Searching...
No Matches
unp.h File Reference
#include <unistd.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "pcp_socket.h"
Include dependency graph for unp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SA   struct sockaddr
 

Functions

char * sock_ntop (const SA *, socklen_t)
 
char * sock_ntop_host (const SA *, socklen_t)
 
char * Sock_ntop (const SA *, socklen_t)
 
char * Sock_ntop_host (const SA *, socklen_t)
 
int Sockfd_to_family (int)
 
int sock_pton (const char *cp, struct sockaddr *sa)
 
int sock_pton_with_prefix (const char *cp, struct sockaddr *sa, int *int_prefix)
 
struct sockaddr * Sock_pton (const char *cp)
 
void err_dump (const char *,...)
 
void err_msg (const char *,...)
 
void err_quit (const char *,...)
 
void err_ret (const char *,...)
 
void err_sys (const char *,...)
 

Macro Definition Documentation

◆ SA

#define SA   struct sockaddr

Definition at line 42 of file unp.h.

Function Documentation

◆ err_dump()

void err_dump ( const char *  ,
  ... 
)

◆ err_msg()

void err_msg ( const char *  ,
  ... 
)

◆ err_quit()

void err_quit ( const char *  ,
  ... 
)

◆ err_ret()

void err_ret ( const char *  ,
  ... 
)

◆ err_sys()

void err_sys ( const char *  ,
  ... 
)

◆ sock_ntop()

char * sock_ntop ( const SA ,
socklen_t   
)

◆ Sock_ntop()

char * Sock_ntop ( const SA ,
socklen_t   
)

◆ sock_ntop_host()

char * sock_ntop_host ( const SA ,
socklen_t   
)

◆ Sock_ntop_host()

char * Sock_ntop_host ( const SA ,
socklen_t   
)

◆ Sock_pton()

struct sockaddr * Sock_pton ( const char *  cp)

Definition at line 217 of file sock_ntop.c.

Here is the call graph for this function:

◆ sock_pton()

int sock_pton ( const char *  cp,
struct sockaddr *  sa 
)

Definition at line 119 of file sock_ntop.c.

Here is the caller graph for this function:

◆ sock_pton_with_prefix()

int sock_pton_with_prefix ( const char *  cp,
struct sockaddr *  sa,
int *  int_prefix 
)

Definition at line 228 of file sock_ntop.c.

◆ Sockfd_to_family()

int Sockfd_to_family ( int  )