libexplain  1.4.D001
Functions
libexplain/buffer/eafnosupport.h File Reference
#include <libexplain/string_buffer.h>

Go to the source code of this file.

Functions

void explain_buffer_eafnosupport (explain_string_buffer_t *sb, int fildes, const char *fildes_caption, const struct sockaddr *sock_addr, const char *sock_addr_caption)

Function Documentation

void explain_buffer_eafnosupport ( explain_string_buffer_t sb,
int  fildes,
const char *  fildes_caption,
const struct sockaddr *  sock_addr,
const char *  sock_addr_caption 
)

The explain_buffer_eafnosupport function may be used to explan an EAFNOSUPPORT error, which occurs when a socket attempts to bind or connect to an address of a different address family.

Parameters:
sbThe string buffer to print into.
fildesThe file descriptor in question.
fildes_captionThe name of the system call argument that holds the file descriptor in question.
sock_addrThe address that attempted to bind or connect
sock_addr_captionThe name of the system call argument that holds the address that attempted to bind or connect

Definition at line 27 of file eafnosupport.c.