brisanetwork.cpp File Reference

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

Go to the source code of this file.

Functions

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

Function Documentation

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.

quint16 getPort (  ) 

Gets an closed port to be used by the BrisaWebServer.

Definition at line 114 of file brisanetwork.cpp.

QString getValidIP (  ) 

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

Definition at line 51 of file brisanetwork.cpp.

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.

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.

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.

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.

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