1 #ifndef _KVI_NETUTILS_H_
2 #define _KVI_NETUTILS_H_
30 #if defined(COMPILE_ON_WINDOWS) || defined(COMPILE_ON_MINGW)
32 #ifdef COMPILE_IPV6_SUPPORT
38 #define in6_addr in_addr6
48 #include <sys/types.h>
49 #include <sys/socket.h>
50 #include <netinet/in.h>
51 #include <arpa/inet.h>
59 KviSockaddr(
const char * szIpAddress, kvi_u32_t
uPort,
bool bIPv6,
bool bUdp =
false);
60 KviSockaddr(kvi_u32_t uPort,
bool bIPv6,
bool bUdp =
false);
67 struct sockaddr * socketAddress();
68 size_t addressLength();
71 bool getStringAddress(QString &
szBuffer);
88 #ifdef COMPILE_IPV6_SUPPORT
89 KVILIB_API bool isValidStringIPv6(
const QString & szStringIp);
90 KVILIB_API bool stringIpToBinaryIp_V6(
const QString & szStringIp,
struct in6_addr * address);
KVILIB_API bool kvi_getLocalHostAddress(QString &buffer)
Definition: KviNetUtils.cpp:767
KVILIB_API bool kvi_isRoutableIp(const char *ipaddr)
Definition: KviNetUtils.cpp:741
bool binaryIpToStringIp(struct in_addr in, QString &szBuffer)
Definition: KviNetUtils.cpp:623
Definition: KviNetUtils.h:56
bool getInterfaceAddress(const QString &, QString &)
COMPILE_GET_INTERFACE_ADDRESS.
Definition: KviNetUtils.cpp:700
KVILIB_API bool kvi_select(int fd, bool *bCanRead, bool *bCanWrite, int iUSecs=0)
Definition: KviNetUtils.cpp:529
bool isRoutableIpString(const QString &szIpString)
Definition: KviNetUtils.cpp:632
void formatNetworkBandwidthString(QString &szBuffer, unsigned int uBytesPerSec)
Definition: KviNetUtils.cpp:706
bool isRoutableIp(const char *ipaddr)
Definition: KviNetUtils.cpp:641
bool isValidStringIp(const QString &szIp)
Definition: KviNetUtils.cpp:589
unsigned int uPort
Definition: libkvisetup.cpp:44
struct addrinfo * m_pData
Definition: KviNetUtils.h:64
char szBuffer[4096]
Definition: winamp.cpp:77
bool stringIpToBinaryIp(const QString &szStringIp, struct in_addr *address)
Definition: KviNetUtils.cpp:555
This file contains compile time settings.
KVILIB_API bool kvi_isRoutableIpString(const char *ipstring)
Definition: KviNetUtils.cpp:732
#define KVILIB_API
Definition: kvi_settings.h:125