|
|
A socket address.
This class envelopes almost if not all socket addresses.
| |
[protected]
Creates an empty class
| |
[protected]
Creates with given data
| ~ |
[virtual]
Destructor.
| QString |
[const virtual]
Returns a string representation of this socket
| const sockaddr* |
[const]
Returns a sockaddr structure, for passing down to library functions
| ksocklen_t |
[const virtual]
Returns sockaddr structure size
| |
[const]
Returns a sockaddr structure, for passing down to library functions
| int |
[const]
Returns the family of this address AF_UNSPEC if it's undefined
| inline int |
[const]
Returns the IANA family number of this address
| bool |
[const virtual]
Returns true if this equals the other socket
Parameters:
| other | the other socket |
| bool |
[const virtual]
Some sockets may differ in such things as services or port numbers, like Internet sockets. This function compares only the core part of that, if possible.
If not possible, like the default implementation, this returns the same as isEqual.
Parameters:
| other | the other socket |
| KSocketAddress* |
[static]
Creates a new KSocketAddress or descendant class from given raw socket address
Parameters:
| sa | new socket address |
| size | new socket address's length |
| int |
[static]
Returns the IANA family number of the given address family returns 0 if there is no corresponding IANA family number
Parameters:
| af | the address family, in AF_* constants |
| int |
[static]
Returns the address family of the given IANA family number returns AF_UNSPEC for unknown IANA family numbers