brisanetwork.h File Reference

#include <QString>
#include <QList>
#include <QNetworkInterface>
#include <QNetworkAddressEntry>
#include <QtDebug>
#include <QObject>
#include <ctime>
#include "brisaglobal.h"

Go to the source code of this file.

Functions

BRISA_UTILS_EXPORT QString getValidIP ()
BRISA_UTILS_EXPORT QString getIp (QString networkInterface)
BRISA_UTILS_EXPORT quint16 getPort ()
BRISA_UTILS_EXPORT QBool isLoopbackIPv4Address (QString address)
BRISA_UTILS_EXPORT QBool isLoopbackIPv6Address (QString address)
BRISA_UTILS_EXPORT QBool isPromiscuousIPv4Address (QString address)
BRISA_UTILS_EXPORT QBool isPromiscuousIPv6Address (QString address)
BRISA_UTILS_EXPORT QBool isPortOpen (QString address, qint16 port, qint16 timeout=2)

Function Documentation

BRISA_UTILS_EXPORT QString getIp ( QString  networkInterface  ) 

Gets an valid IP address from an specific interface.

Parameters:
networkInterface The interface to acquire the IP Address from.

Definition at line 69 of file brisanetwork.cpp.

BRISA_UTILS_EXPORT quint16 getPort (  ) 

Gets an closed port to be used by the BrisaWebServer.

Definition at line 114 of file brisanetwork.cpp.

BRISA_UTILS_EXPORT QString getValidIP (  ) 

Gets an valid IP address from an active interface on the host computer.

Definition at line 51 of file brisanetwork.cpp.

BRISA_UTILS_EXPORT QBool isLoopbackIPv4Address ( QString  address  ) 

Verify if this address is a loopback ipv4 address or not.

Parameters:
address The address to be tested

Definition at line 35 of file brisanetwork.cpp.

BRISA_UTILS_EXPORT QBool isLoopbackIPv6Address ( QString  address  ) 

Verify if this address is a loopback ipv6 address or not.

Parameters:
address The address to be tested

Definition at line 39 of file brisanetwork.cpp.

BRISA_UTILS_EXPORT QBool isPortOpen ( QString  address,
qint16  port,
qint16  timeout = 2 
)

Verify if an port is currently opened on this host.

Parameters:
address the IP address
port the port to be tested
timeout the timeout to end the test

Definition at line 81 of file brisanetwork.cpp.

BRISA_UTILS_EXPORT QBool isPromiscuousIPv4Address ( QString  address  ) 

Verify if this address is a Promiscous ipv4 address or not.

Parameters:
address The address to be tested

Definition at line 43 of file brisanetwork.cpp.

BRISA_UTILS_EXPORT QBool isPromiscuousIPv6Address ( QString  address  ) 

Verify if this address is a Promiscous ipv6 address or not.

Parameters:
address The address to be tested

Definition at line 47 of file brisanetwork.cpp.

Generated on Thu Sep 30 14:04:30 2010 for Brisa by  doxygen 1.6.3