XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Functions | Variables
netdb.h File Reference
#include <stdint.h>
#include <_xeneva.h>
#include <sys/socket.h>
Include dependency graph for netdb.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  hostent
 

Macros

#define AI_PASSIVE   0x01
 
#define AI_CANONNAME   0x02
 
#define AI_NUMERICHOST   0x04
 
#define AI_NUMERICSERV   0x08
 
#define EAI_BADFLAGS   -1
 
#define EAI_NONAME   -2
 
#define EAI_AGAIN   -3
 
#define EAI_FAIL   -4
 
#define EAI_FAMILY   -5
 
#define EAI_MEMORY   -6
 
#define EAI_SERVICE   -7
 
#define EAI_OVERFLOW   -8
 

Functions

 __attribute__ ((aligned(2))) typedef struct _dns_
 
XE_LIB hostent * gethostbyname (const char *name)
 
XE_LIB int getaddrinfo (const char *node, const char *service, const addrinfo *hints, addrinfo **res)
 
XE_LIB void freeaddrinfo (addrinfo *res)
 
XE_LIB const char * gai_strerror (int errcode)
 
XE_LIB uint32_t xe_dns_last_server (void)
 

Variables

 DNSPacket
 

Detailed Description

BSD 2-Clause License

Copyright (c) 2022-2024, Manas Kamal Choudhury All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Macro Definition Documentation

◆ AI_CANONNAME

#define AI_CANONNAME   0x02

◆ AI_NUMERICHOST

#define AI_NUMERICHOST   0x04

◆ AI_NUMERICSERV

#define AI_NUMERICSERV   0x08

◆ AI_PASSIVE

#define AI_PASSIVE   0x01

◆ EAI_AGAIN

#define EAI_AGAIN   -3

◆ EAI_BADFLAGS

#define EAI_BADFLAGS   -1

◆ EAI_FAIL

#define EAI_FAIL   -4

◆ EAI_FAMILY

#define EAI_FAMILY   -5

◆ EAI_MEMORY

#define EAI_MEMORY   -6

◆ EAI_NONAME

#define EAI_NONAME   -2

◆ EAI_OVERFLOW

#define EAI_OVERFLOW   -8

◆ EAI_SERVICE

#define EAI_SERVICE   -7

Function Documentation

◆ __attribute__()

__attribute__ ( (aligned(2))  )

◆ freeaddrinfo()

XE_LIB void freeaddrinfo ( addrinfo *  res)

◆ gai_strerror()

XE_LIB const char * gai_strerror ( int  errcode)

◆ getaddrinfo()

XE_LIB int getaddrinfo ( const char *  node,
const char *  service,
const addrinfo *  hints,
addrinfo **  res 
)

◆ gethostbyname()

XE_LIB hostent * gethostbyname ( const char *  name)

◆ xe_dns_last_server()

XE_LIB uint32_t xe_dns_last_server ( void  )

Variable Documentation

◆ DNSPacket