mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 14:40:30 +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
|
||||
{
|
||||
/// Returns pointer to underlying $(D sockaddr) structure.
|
||||
sockaddr* name();
|
||||
const(sockaddr)* name() const;
|
||||
const(sockaddr)* name() const; /// ditto
|
||||
|
||||
/// Returns actual size of underlying $(D sockaddr) structure.
|
||||
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.
|
||||
AddressFamily addressFamily() const
|
||||
|
@ -785,7 +790,7 @@ abstract class Address
|
|||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* $(D UnknownAddress) encapsulates an arbitrary network address.
|
||||
*/
|
||||
class UnknownAddress: Address
|
||||
{
|
||||
|
@ -819,8 +824,7 @@ public:
|
|||
|
||||
|
||||
/**
|
||||
* $(D InternetAddress) is a class that represents an IPv4 (internet protocol
|
||||
* version 4) address and port.
|
||||
* $(D InternetAddress) encapsulates an IPv4 (Internet Protocol version 4) address.
|
||||
*/
|
||||
class InternetAddress: Address
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue