module core.c.posix.arpa.inet
C Bindings | Posix Bindings

Code Map

module core.c.posix.arpa.inet;

public import core.c.posix.sys.socket;


enum INET_ADDRSTRLEN;
enum INET6_ADDRSTRLEN;

alias in_port_t = u16;
alias in_addr_t = u32;

struct in_addr
{
public:
	s_addr: in_addr_t;
}

fn htonl(u32) u32;
fn htons(u16) u16;
fn ntohl(u32) u32;
fn ntohs(u16) u16;
fn inet_addr(const(const(char)*)) in_addr_t;
fn inet_ntoa(in_addr) char*;
fn inet_ntop(i32, const(const(void)*), char*, socklen_t) const(char)*;
fn inet_pton(i32, const(const(char)*), void*) i32;