Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

InternetAddress Class Reference

Inheritance diagram for InternetAddress:

Address List of all members.

Public Member Functions

sockaddr * name ()
int nameLen ()
 this ()
Socket AddressFamily addressFamily ()
ushort port ()
uint addr ()
 this (char[] addr, ushort port=PORT_ANY)
 this (uint addr, ushort port)
 this (ushort port)
char[] toAddrString ()
char[] toPortString ()
char[] toString ()

Static Public Member Functions

static uint parse (char[] addr)

Public Attributes

sockaddr_in sin
const uint ADDR_ANY = 0
const uint ADDR_NONE = cast(uint)-1
const ushort PORT_ANY = 0

Member Function Documentation

sockaddr* name  )  [inline]
 

Reimplemented from Address.

Definition at line 1804 of file Socket.d.

int nameLen  )  [inline]
 

Reimplemented from Address.

Definition at line 1815 of file Socket.d.

this  )  [inline]
 

Definition at line 1826 of file Socket.d.

References sin.

Socket AddressFamily addressFamily  )  [inline]
 

Reimplemented from Address.

Definition at line 1842 of file Socket.d.

References sin.

ushort port  )  [inline]
 

Definition at line 1853 of file Socket.d.

Referenced by AbstractServer::getPort(), MulticastSocket::join(), parse(), this(), and toAddrString().

uint addr  )  [inline]
 

Definition at line 1864 of file Socket.d.

References ADDR_NONE, and PORT_ANY.

this char[]  addr,
ushort  port = PORT_ANY
[inline]
 

-port- can be PORT_ANY -addr- is an IP address or host name

Definition at line 1877 of file Socket.d.

References sin.

this uint  addr,
ushort  port
[inline]
 

Definition at line 1897 of file Socket.d.

References sin.

this ushort  port  )  [inline]
 

Definition at line 1909 of file Socket.d.

References ADDR_NONE, InternetHost::addrList, InternetHost::getHostByName(), parse(), port(), and sin.

char [] toAddrString  )  [inline]
 

Definition at line 1921 of file Socket.d.

References port(), and sin.

Referenced by AbstractServer::getHost(), and AbstractServer::getRemoteAddress().

char [] toPortString  )  [inline]
 

Definition at line 1932 of file Socket.d.

char [] toString  )  [inline]
 

Reimplemented from Address.

Definition at line 1943 of file Socket.d.

References sin.

Referenced by SocketSet::VersionWin32::first().

static uint parse char[]  addr  )  [inline, static]
 

-addr- is an IP address in the format "a.b.c.d" returns ADDR_NONE on failure

Definition at line 1956 of file Socket.d.

References port().

Referenced by this().


Member Data Documentation

sockaddr_in sin
 

Definition at line 1796 of file Socket.d.

Referenced by addressFamily(), Socket::setGroup(), this(), toAddrString(), and toString().

const uint ADDR_ANY = 0
 

Definition at line 1832 of file Socket.d.

const uint ADDR_NONE = cast(uint)-1
 

Definition at line 1833 of file Socket.d.

Referenced by addr(), and this().

const ushort PORT_ANY = 0
 

Definition at line 1834 of file Socket.d.

Referenced by addr().


The documentation for this class was generated from the following file:
Generated on Fri Nov 11 18:44:38 2005 for Mango by  doxygen 1.4.0