summaryrefslogtreecommitdiffstats
path: root/src/kvilib/net/kvi_netutils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kvilib/net/kvi_netutils.h')
-rw-r--r--src/kvilib/net/kvi_netutils.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/kvilib/net/kvi_netutils.h b/src/kvilib/net/kvi_netutils.h
index b43326f0..99e4bff8 100644
--- a/src/kvilib/net/kvi_netutils.h
+++ b/src/kvilib/net/kvi_netutils.h
@@ -49,12 +49,12 @@
KVILIB_API extern bool kvi_isValidStringIp(const char * szIp);
KVILIB_API extern bool kvi_stringIpToBinaryIp(const char * szIp,struct in_addr * address);
-KVILIB_API extern bool kvi_binaryIpToStringIp(struct in_addr in,QString &szBuffer);
+KVILIB_API extern bool kvi_binaryIpToStringIp(struct in_addr in,TQString &szBuffer);
#ifdef COMPILE_IPV6_SUPPORT
KVILIB_API extern bool kvi_isValidStringIp_V6(const char * szIp);
KVILIB_API extern bool kvi_stringIpToBinaryIp_V6(const char * szIp,struct in6_addr * address);
- KVILIB_API extern bool kvi_binaryIpToStringIp_V6(struct in6_addr in,QString &szBuffer);
+ KVILIB_API extern bool kvi_binaryIpToStringIp_V6(struct in6_addr in,TQString &szBuffer);
#endif
class KVILIB_API KviSockaddr
@@ -70,34 +70,34 @@ public:
size_t addressLength();
int addressFamily();
bool isIpV6();
- bool getStringAddress(QString &szBuffer);
+ bool getStringAddress(TQString &szBuffer);
kvi_u32_t port();
};
KVILIB_API extern bool kvi_select(int fd,bool * bCanRead,bool * bCanWrite,int iUSecs = 0);
-KVILIB_API extern bool kvi_getInterfaceAddress(const char * ifname,QString &buffer);
+KVILIB_API extern bool kvi_getInterfaceAddress(const char * ifname,TQString &buffer);
// Warning : NOT THREAD SAFE!
-KVILIB_API extern bool kvi_getLocalHostAddress(QString &buffer);
+KVILIB_API extern bool kvi_getLocalHostAddress(TQString &buffer);
KVILIB_API extern bool kvi_isRoutableIp(const char * ipaddr);
KVILIB_API extern bool kvi_isRoutableIpString(const char * ipstring);
namespace KviNetUtils
{
- KVILIB_API bool stringIpToBinaryIp(const QString &szStringIp,struct in_addr * address);
- KVILIB_API bool isValidStringIp(const QString &szStringIp);
- KVILIB_API bool binaryIpToStringIp(struct in_addr in,QString &szBuffer);
- KVILIB_API bool getInterfaceAddress(const QString &szInterfaceName,QString &szBuffer);
+ KVILIB_API bool stringIpToBinaryIp(const TQString &szStringIp,struct in_addr * address);
+ KVILIB_API bool isValidStringIp(const TQString &szStringIp);
+ KVILIB_API bool binaryIpToStringIp(struct in_addr in,TQString &szBuffer);
+ KVILIB_API bool getInterfaceAddress(const TQString &szInterfaceName,TQString &szBuffer);
#ifdef COMPILE_IPV6_SUPPORT
- KVILIB_API bool isValidStringIp_V6(const QString &szStringIp);
- KVILIB_API bool stringIpToBinaryIp_V6(const QString &szStringIp,struct in6_addr * address);
- KVILIB_API bool binaryIpToStringIp_V6(struct in6_addr in,QString &szBuffer);
+ KVILIB_API bool isValidStringIp_V6(const TQString &szStringIp);
+ KVILIB_API bool stringIpToBinaryIp_V6(const TQString &szStringIp,struct in6_addr * address);
+ KVILIB_API bool binaryIpToStringIp_V6(struct in6_addr in,TQString &szBuffer);
#endif
KVILIB_API bool isRoutableIp(const char * ipaddr);
- KVILIB_API bool isRoutableIpString(const QString &szIpString);
- KVILIB_API void formatNetworkBandwidthString(QString &szBuffer,unsigned int uBytesPerSec);
+ KVILIB_API bool isRoutableIpString(const TQString &szIpString);
+ KVILIB_API void formatNetworkBandwidthString(TQString &szBuffer,unsigned int uBytesPerSec);
};