tango.net.device.Berkeley

Undocumented in source.

Members

Aliases

close
alias close = closesocket

Classes

Address
class Address
IPv4Address
class IPv4Address
IPv6Address
class IPv6Address

IPv6 is the next-generation Internet Protocol version designated as the successor to IPv4, the first implementation used in the Internet that is still in dominant use currently.

NetHost
class NetHost
SocketSet
class SocketSet

a set of sockets for Berkeley.select()

UnknownAddress
class UnknownAddress

Enums

AIError
enum AIError
Undocumented in source.
AIFlags
enum AIFlags
Undocumented in source.
AddressFamily
enum AddressFamily
NIFlags
enum NIFlags
Undocumented in source.
ProtocolType
enum ProtocolType
SOCKET_ERROR
anonymousenum SOCKET_ERROR
SocketFlags
enum SocketFlags
SocketOption
enum SocketOption
SocketOptionLevel
enum SocketOptionLevel
SocketShutdown
enum SocketShutdown
SocketType
enum SocketType
socket_t
enum socket_t
socket_t
enum socket_t
Undocumented in source.

Functions

accept
socket_t accept(socket_t s, Address.sockaddr* addr, int* addrlen)
accept
socket_t accept(socket_t s, Address.sockaddr* addr, int* addrlen)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
bind
int bind(socket_t s, Address.sockaddr* name, int namelen)
bind
int bind(socket_t s, const(Address.sockaddr)* name, int namelen)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
close
int close(socket_t s)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
closesocket
int closesocket(socket_t s)
connect
int connect(socket_t s, Address.sockaddr* name, int namelen)
connect
int connect(socket_t s, const(Address.sockaddr)* name, int namelen)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
fcntl
int fcntl(socket_t s, int f, ...)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
freeaddrinfo
void freeaddrinfo(Address.addrinfo* res)

The freeaddrinfo() function frees the memory that was allocated for the dynamically allocated linked list res. (C) MAN

gai_strerror
const(char)* gai_strerror(int errcode)

The gai_strerror function translates error codes of getaddrinfo, freeaddrinfo and getnameinfo to a human readable string, suitable for error reporting. (C) MAN

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

Given node and service, which identify an Internet host and a service, getaddrinfo() returns one or more addrinfo structures, each of which contains an Internet address that can be specified in a call to bind or connect. The getaddrinfo() function combines the functionality provided by the getservbyname and getservbyport functions into a single interface, but unlike the latter functions, getaddrinfo() is reentrant and allows programs to eliminate IPv4-versus-IPv6 dependencies. (C) MAN

gethostbyaddr
NetHost.hostent* gethostbyaddr(const(void)* addr, int len, int type)
gethostbyaddr
NetHost.hostent* gethostbyaddr(const(void)* addr, int len, int type)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
gethostbyname
NetHost.hostent* gethostbyname(const(char)* name)
gethostbyname
NetHost.hostent* gethostbyname(const(char)* name)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
gethostname
int gethostname(void* namebuffer, int buflen)
gethostname
int gethostname(void* namebuffer, int buflen)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
getnameinfo
int getnameinfo(Address.sockaddr* sa, int salen, char* host, int hostlen, char* serv, int servlen, int flags)

The getnameinfo() function is the inverse of getaddrinfo: it converts a socket address to a corresponding host and service, in a protocol-independent manner. It combines the functionality of gethostbyaddr and getservbyport, but unlike those functions, getaddrinfo is reentrant and allows programs to eliminate IPv4-versus-IPv6 dependencies. (C) MAN

getpeername
int getpeername(socket_t s, Address.sockaddr* name, int* namelen)
getpeername
int getpeername(socket_t s, Address.sockaddr* name, int* namelen)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
getsockname
int getsockname(socket_t s, Address.sockaddr* name, int* namelen)
getsockname
int getsockname(socket_t s, Address.sockaddr* name, int* namelen)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
getsockopt
int getsockopt(socket_t s, int level, int optname, void* optval, int* optlen)
getsockopt
int getsockopt(socket_t s, int level, int optname, void* optval, int* optlen)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
inet_addr
uint inet_addr(const(char)* cp)
inet_addr
uint inet_addr(const(char)* cp)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
inet_ntoa
char* inet_ntoa(uint ina)
inet_ntoa
char* inet_ntoa(uint ina)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
inet_ntop
const(char)* inet_ntop(int af, const(void)* src, char* dst, int len)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
ioctlsocket
int ioctlsocket(socket_t s, int cmd, uint* argp)
listen
int listen(socket_t s, int backlog)
listen
int listen(socket_t s, int backlog)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
recv
int recv(socket_t s, void* buf, int len, int flags)
recv
int recv(socket_t s, void* buf, size_t len, int flags)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
recvfrom
int recvfrom(socket_t s, void* buf, int len, int flags, Address.sockaddr* from, int* fromlen)
recvfrom
int recvfrom(socket_t s, void* buf, size_t len, int flags, Address.sockaddr* from, int* fromlen)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
select
int select(int nfds, SocketSet.fd* readfds, SocketSet.fd* writefds, SocketSet.fd* errorfds, SocketSet.timeval* timeout)
select
int select(int nfds, SocketSet.fd* readfds, SocketSet.fd* writefds, SocketSet.fd* errorfds, SocketSet.timeval* timeout)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
send
int send(socket_t s, const(void)* buf, int len, int flags)
send
int send(socket_t s, const(void)* buf, size_t len, int flags)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sendto
int sendto(socket_t s, const(void)* buf, int len, int flags, Address.sockaddr* to, int tolen)
sendto
int sendto(socket_t s, const(void)* buf, size_t len, int flags, Address.sockaddr* to, int tolen)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
setsockopt
int setsockopt(socket_t s, int level, int optname, const(void)* optval, int optlen)
setsockopt
int setsockopt(socket_t s, int level, int optname, const(void)* optval, int optlen)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
shutdown
int shutdown(socket_t s, int how)
shutdown
int shutdown(socket_t s, int how)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
socket
socket_t socket(int af, int type, int protocol)
socket
socket_t socket(int af, int type, int protocol)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Structs

Berkeley
struct Berkeley

Variables

AcceptEx
bool function(socket_t, uint, void*, DWORD, DWORD, DWORD, DWORD*, OVERLAPPED*) AcceptEx;
ConnectEx
bool function(socket_t, void*, int, void*, DWORD, DWORD*, OVERLAPPED*) ConnectEx;
TransmitFile
bool function(socket_t, HANDLE, DWORD, DWORD, OVERLAPPED*, void*, DWORD) TransmitFile;
freeaddrinfo
void function(Address.addrinfo* res) freeaddrinfo;

The freeaddrinfo() function frees the memory that was allocated for the dynamically allocated linked list res. (C) MAN

getaddrinfo
int function(const(char)* node, const(char)* service, Address.addrinfo* hints, Address.addrinfo** res) getaddrinfo;

Given node and service, which identify an Internet host and a service, getaddrinfo() returns one or more addrinfo structures, each of which contains an Internet address that can be specified in a call to bind or connect. The getaddrinfo() function combines the functionality provided by the getservbyname and getservbyport functions into a single interface, but unlike the latter functions, getaddrinfo() is reentrant and allows programs to eliminate IPv4-versus-IPv6 dependencies.(C) MAN

getnameinfo
int function(Address.sockaddr* sa, int salen, char* host, int hostlen, char* serv, int servlen, int flags) getnameinfo;

The getnameinfo() function is the inverse of getaddrinfo: it converts a socket address to a corresponding host and service, in a protocol- independent manner. It combines the functionality of gethostbyaddr and getservbyport, but unlike those functions, getaddrinfo is reentrant and allows programs to eliminate IPv4-versus-IPv6 dependencies. (C) MAN

Meta