mirror of
https://github.com/dlang/phobos.git
synced 2025-05-02 08:00:48 +03:00
std.socket: Address DDoc improvements
This commit is contained in:
parent
1ee33a4932
commit
57159cd936
1 changed files with 9 additions and 5 deletions
14
std/socket.d
14
std/socket.d
|
@ -738,10 +738,15 @@ class AddressException: SocketOSException
|
||||||
*/
|
*/
|
||||||
abstract class Address
|
abstract class Address
|
||||||
{
|
{
|
||||||
|
/// Returns pointer to underlying $(D sockaddr) structure.
|
||||||
sockaddr* name();
|
sockaddr* name();
|
||||||
const(sockaddr)* name() const;
|
const(sockaddr)* name() const; /// ditto
|
||||||
|
|
||||||
|
/// Returns actual size of underlying $(D sockaddr) structure.
|
||||||
int nameLen() const;
|
int nameLen() const;
|
||||||
override string toString() const; /// Human readable string representing this address.
|
|
||||||
|
/// Human readable string representing this address.
|
||||||
|
override string toString() const;
|
||||||
|
|
||||||
/// Family of this address.
|
/// Family of this address.
|
||||||
AddressFamily addressFamily() const
|
AddressFamily addressFamily() const
|
||||||
|
@ -785,7 +790,7 @@ abstract class Address
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* $(D UnknownAddress) encapsulates an arbitrary network address.
|
||||||
*/
|
*/
|
||||||
class UnknownAddress: Address
|
class UnknownAddress: Address
|
||||||
{
|
{
|
||||||
|
@ -819,8 +824,7 @@ public:
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $(D InternetAddress) is a class that represents an IPv4 (internet protocol
|
* $(D InternetAddress) encapsulates an IPv4 (Internet Protocol version 4) address.
|
||||||
* version 4) address and port.
|
|
||||||
*/
|
*/
|
||||||
class InternetAddress: Address
|
class InternetAddress: Address
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue