NetSurf
Macros | Functions
inet.h File Reference

internet structures and defines More...

#include "utils/config.h"
#include <winsock2.h>
#include <ws2tcpip.h>
Include dependency graph for inet.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define EAFNOSUPPORT   WSAEAFNOSUPPORT
 
#define ns_close_socket   closesocket
 

Functions

int inet_aton (const char *cp, struct in_addr *inp)
 
int inet_pton (int af, const char *src, void *dst)
 

Detailed Description

internet structures and defines

This allows the obtaining of standard bsd sockets and associated functions in a uniform way despite any oddities in headers and supported API between OS.

Note
This functionality was previously provided as a side effect of the utils config header include.

Definition in file inet.h.

Macro Definition Documentation

◆ EAFNOSUPPORT

#define EAFNOSUPPORT   WSAEAFNOSUPPORT

Definition at line 58 of file inet.h.

◆ ns_close_socket

#define ns_close_socket   closesocket

Definition at line 61 of file inet.h.

Function Documentation

◆ inet_aton()

int inet_aton ( const char *  cp,
struct in_addr *  inp 
)

Definition at line 489 of file utils.c.

Referenced by inet_pton(), and urldb__host_is_ip_address().

Here is the caller graph for this function:

◆ inet_pton()

int inet_pton ( int  af,
const char *  src,
void *  dst 
)

Definition at line 512 of file utils.c.

References EAFNOSUPPORT, and inet_aton().

Referenced by urldb__host_is_ip_address().

Here is the call graph for this function:
Here is the caller graph for this function: