|
|
@ -931,7 +931,7 @@ public:
|
|
|
|
* @param flags the same flags as getnameinfo()
|
|
|
|
* @param flags the same flags as getnameinfo()
|
|
|
|
* @returns 0 on success, nonzero otherwise.
|
|
|
|
* @returns 0 on success, nonzero otherwise.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static int resolve(sockaddr* sock, ksocklen_t len, TQString& host, TQString& port, int flags = 0) KDE_DEPRECATED;
|
|
|
|
static int resolve(sockaddr* sock, ksocklen_t len, TQString& host, TQString& port, int flags = 0) TDE_DEPRECATED;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Performs resolution on the given socket address.
|
|
|
|
* Performs resolution on the given socket address.
|
|
|
@ -945,7 +945,7 @@ public:
|
|
|
|
* @param flags the same flags as getnameinfo()
|
|
|
|
* @param flags the same flags as getnameinfo()
|
|
|
|
* @returns 0 on success, nonzero otherwise.
|
|
|
|
* @returns 0 on success, nonzero otherwise.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static int resolve(::TDESocketAddress* sock, TQString& host, TQString& port, int flags = 0) KDE_DEPRECATED;
|
|
|
|
static int resolve(::TDESocketAddress* sock, TQString& host, TQString& port, int flags = 0) TDE_DEPRECATED;
|
|
|
|
|
|
|
|
|
|
|
|
/** @deprecated
|
|
|
|
/** @deprecated
|
|
|
|
* This function is now deprecated. Please use @ref KNetwork::KResolver::resolve.
|
|
|
|
* This function is now deprecated. Please use @ref KNetwork::KResolver::resolve.
|
|
|
@ -967,7 +967,7 @@ public:
|
|
|
|
* @param error pointer to a variable holding the error code
|
|
|
|
* @param error pointer to a variable holding the error code
|
|
|
|
* @return a list of KAddressInfos
|
|
|
|
* @return a list of KAddressInfos
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static TQPtrList<KAddressInfo> lookup(const TQString& host, const TQString& port, int flags = 0, int *error = 0) KDE_DEPRECATED;
|
|
|
|
static TQPtrList<KAddressInfo> lookup(const TQString& host, const TQString& port, int flags = 0, int *error = 0) TDE_DEPRECATED;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Returns the local socket address
|
|
|
|
* Returns the local socket address
|
|
|
@ -975,7 +975,7 @@ public:
|
|
|
|
* @param fd the file descriptor
|
|
|
|
* @param fd the file descriptor
|
|
|
|
* @return the local socket address or 0 if an error occurred. Delete after use.
|
|
|
|
* @return the local socket address or 0 if an error occurred. Delete after use.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static ::TDESocketAddress *localAddress(int fd) KDE_DEPRECATED;
|
|
|
|
static ::TDESocketAddress *localAddress(int fd) TDE_DEPRECATED;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Returns the peer socket address. Use KExtendedSocket::resolve() to
|
|
|
|
* Returns the peer socket address. Use KExtendedSocket::resolve() to
|
|
|
@ -984,7 +984,7 @@ public:
|
|
|
|
* @param fd the file descriptor
|
|
|
|
* @param fd the file descriptor
|
|
|
|
* @return the peer socket address or 0 if an error occurred. Delete after use.
|
|
|
|
* @return the peer socket address or 0 if an error occurred. Delete after use.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static ::TDESocketAddress *peerAddress(int fd) KDE_DEPRECATED;
|
|
|
|
static ::TDESocketAddress *peerAddress(int fd) TDE_DEPRECATED;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Returns the representing text of this error code
|
|
|
|
* Returns the representing text of this error code
|
|
|
@ -1003,7 +1003,7 @@ public:
|
|
|
|
* @param enable if true, set address reusable
|
|
|
|
* @param enable if true, set address reusable
|
|
|
|
* @return true on success, false on failure.
|
|
|
|
* @return true on success, false on failure.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static bool setAddressReusable(int fd, bool enable) KDE_DEPRECATED;
|
|
|
|
static bool setAddressReusable(int fd, bool enable) TDE_DEPRECATED;
|
|
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
protected:
|
|
|
|
virtual void virtual_hook( int id, void* data );
|
|
|
|
virtual void virtual_hook( int id, void* data );
|
|
|
@ -1040,20 +1040,20 @@ public:
|
|
|
|
* Returns the KAddressInfo's TDESocketAddress.
|
|
|
|
* Returns the KAddressInfo's TDESocketAddress.
|
|
|
|
* Only valid as long as the KAddressInfo exists.
|
|
|
|
* Only valid as long as the KAddressInfo exists.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline KDE_DEPRECATED operator const ::TDESocketAddress*() const
|
|
|
|
inline TDE_DEPRECATED operator const ::TDESocketAddress*() const
|
|
|
|
{ return addr; }
|
|
|
|
{ return addr; }
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Returns the KAddressInfo's addrinfo.
|
|
|
|
* Returns the KAddressInfo's addrinfo.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline KDE_DEPRECATED operator const addrinfo&() const
|
|
|
|
inline TDE_DEPRECATED operator const addrinfo&() const
|
|
|
|
{ return *ai; }
|
|
|
|
{ return *ai; }
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Returns a pointer to KAddressInfo's addrinfo.
|
|
|
|
* Returns a pointer to KAddressInfo's addrinfo.
|
|
|
|
* Only valid as long as the KAddressInfo exists.
|
|
|
|
* Only valid as long as the KAddressInfo exists.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline KDE_DEPRECATED operator const addrinfo*() const
|
|
|
|
inline TDE_DEPRECATED operator const addrinfo*() const
|
|
|
|
{ return ai; }
|
|
|
|
{ return ai; }
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -1061,32 +1061,32 @@ public:
|
|
|
|
* Only valid as long as the KAddressInfo exists.
|
|
|
|
* Only valid as long as the KAddressInfo exists.
|
|
|
|
* @return the KAddressInfo's TDESocketAddress.
|
|
|
|
* @return the KAddressInfo's TDESocketAddress.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline KDE_DEPRECATED const ::TDESocketAddress* address() const
|
|
|
|
inline TDE_DEPRECATED const ::TDESocketAddress* address() const
|
|
|
|
{ return addr; }
|
|
|
|
{ return addr; }
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Returns the flags of the address info (see getaddrinfo(3)).
|
|
|
|
* Returns the flags of the address info (see getaddrinfo(3)).
|
|
|
|
* @return the flags of the addres info.
|
|
|
|
* @return the flags of the addres info.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
int flags() const KDE_DEPRECATED;
|
|
|
|
int flags() const TDE_DEPRECATED;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Returns the family of the address info (see getaddrinfo(3)).
|
|
|
|
* Returns the family of the address info (see getaddrinfo(3)).
|
|
|
|
* @return the family of the addres info.
|
|
|
|
* @return the family of the addres info.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
int family() const KDE_DEPRECATED;
|
|
|
|
int family() const TDE_DEPRECATED;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Returns the socket type of the address info (see getaddrinfo(3)).
|
|
|
|
* Returns the socket type of the address info (see getaddrinfo(3)).
|
|
|
|
* @return the socket type of the addres info.
|
|
|
|
* @return the socket type of the addres info.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
int socktype() const KDE_DEPRECATED;
|
|
|
|
int socktype() const TDE_DEPRECATED;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Returns the protocol of the address info (see getaddrinfo(3)).
|
|
|
|
* Returns the protocol of the address info (see getaddrinfo(3)).
|
|
|
|
* @return the protocol of the addres info.
|
|
|
|
* @return the protocol of the addres info.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
int protocol() const KDE_DEPRECATED;
|
|
|
|
int protocol() const TDE_DEPRECATED;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -1094,7 +1094,7 @@ public:
|
|
|
|
* Only valid as long as the KAddressInfo exists.
|
|
|
|
* Only valid as long as the KAddressInfo exists.
|
|
|
|
* @return the official name of the host
|
|
|
|
* @return the official name of the host
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
const char* canonname() const KDE_DEPRECATED;
|
|
|
|
const char* canonname() const TDE_DEPRECATED;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Returns the length of the TDESocketAddress.
|
|
|
|
* Returns the length of the TDESocketAddress.
|
|
|
|