Data Fields
sockaddr_converter Struct Reference

Socket address converter. More...

#include <socket.h>

Data Fields

sa_family_t family
 Socket address family. More...
const char *(* ntoa )(struct sockaddr *sa)
 Transcribe socket address. More...
int(* aton )(const char *string, struct sockaddr *sa)
 Parse socket address. More...

Detailed Description

Socket address converter.

Definition at line 115 of file socket.h.

Field Documentation

◆ family

sa_family_t sockaddr_converter::family

Socket address family.

This is an AF_XXX constant.

Definition at line 120 of file socket.h.

Referenced by sock_aton(), and sock_ntoa().

◆ ntoa

const char*( * sockaddr_converter::ntoa) (struct sockaddr *sa)

Transcribe socket address.

saSocket address
Return values
stringSocket address string

Definition at line 126 of file socket.h.

Referenced by sock_ntoa().

◆ aton

int( * sockaddr_converter::aton) (const char *string, struct sockaddr *sa)

Parse socket address.

stringSocket address stringh
saSocket address to fill in
Return values
rcReturn status code

Definition at line 133 of file socket.h.

Referenced by sock_aton().

The documentation for this struct was generated from the following file: