ArnLib  4.0.x
Active Registry Network
ArnZeroConfB Class Reference

Base class for Zero Config. More...

#include <ArnZeroConf.hpp>

Inheritance diagram for ArnZeroConfB:
Collaboration diagram for ArnZeroConfB:

Public Member Functions

 ArnZeroConfB (QObject *parent=arnNullptr)
 
virtual ~ArnZeroConfB ()
 
QAbstractSocket::SocketType socketType () const
 Returns the socket type for this Zero Config. More...
 
void setSocketType (QAbstractSocket::SocketType type)
 Sets the socket type for this Zero Config. More...
 
QString serviceType () const
 Returns the service type for this Zero Config. More...
 
void setServiceType (const QString &type)
 Returns the service type for this Zero Config. More...
 
QString domain () const
 Returns the domain for this Zero Config. More...
 
void setDomain (const QString &domain)
 Sets the domain for this Zero Config. More...
 
ArnZeroConf::State state () const
 Returns the current state of the service. More...
 
QString fullServiceType () const
 Returns the full service type for this Zero Config. More...
 

Detailed Description

Base class for Zero Config.

About Zero Config

This class contains methods and data which is usually a superset, i.e. not all data will be relevant / available for all uses.

Definition at line 112 of file ArnZeroConf.hpp.

Constructor & Destructor Documentation

◆ ArnZeroConfB()

ArnZeroConfB::ArnZeroConfB ( QObject *  parent = arnNullptr)

Definition at line 85 of file ArnZeroConf.cpp.

◆ ~ArnZeroConfB()

ArnZeroConfB::~ArnZeroConfB ( )
virtual

Definition at line 104 of file ArnZeroConf.cpp.

Member Function Documentation

◆ domain()

QString ArnZeroConfB::domain ( ) const

Returns the domain for this Zero Config.

Returns
current domain.
See also
setDomain()

Definition at line 295 of file ArnZeroConf.cpp.

◆ fullServiceType()

QString ArnZeroConfB::fullServiceType ( ) const

Returns the full service type for this Zero Config.

Service types are standardized by IANA.

The full service type is the standard format used by the Zeroconf specification, e.g. "_arn._tcp".

Returns
current full service type (see above)
See also
setServiceType()

Definition at line 330 of file ArnZeroConf.cpp.

◆ serviceType()

QString ArnZeroConfB::serviceType ( ) const

Returns the service type for this Zero Config.

Returns
current service type, e.g. "arn", "ftp" ...
See also
setServiceType()

Definition at line 266 of file ArnZeroConf.cpp.

◆ setDomain()

void ArnZeroConfB::setDomain ( const QString &  domain)

Sets the domain for this Zero Config.

Default set by this class is "local.".

Parameters
[in]domain
See also
domain()

Definition at line 301 of file ArnZeroConf.cpp.

◆ setServiceType()

void ArnZeroConfB::setServiceType ( const QString &  type)

Returns the service type for this Zero Config.

Service types are standardized by IANA.

The service type used here can be a name, like "arn", or the standard format used by the Zeroconf specification, e.g. "_arn._tcp".

Parameters
[in]typeis the service type (se above).
See also
serviceType()

Definition at line 272 of file ArnZeroConf.cpp.

◆ setSocketType()

void ArnZeroConfB::setSocketType ( QAbstractSocket::SocketType  type)

Sets the socket type for this Zero Config.

Allowed Socket type is: QAbstractSocket::TcpSocket, QAbstractSocket::UdpSocket.

Parameters
[in]typeis one of the allowed types.
See also
socketType()

Definition at line 260 of file ArnZeroConf.cpp.

◆ socketType()

QAbstractSocket::SocketType ArnZeroConfB::socketType ( ) const

Returns the socket type for this Zero Config.

  • Socket type can be: QAbstractSocket::TcpSocket, QAbstractSocket::UdpSocket, QAbstractSocket::UnknownSocketType.
  • Default set by this class is QAbstractSocket::TcpSocket.
  • QAbstractSocket::UnknownSocketType is only used when socket type can't be determined.
    Returns
    current socket type.
    See also
    setSocketType()

Definition at line 254 of file ArnZeroConf.cpp.

◆ state()

ArnZeroConf::State ArnZeroConfB::state ( ) const

Returns the current state of the service.

Return values
thestate of the service

Definition at line 193 of file ArnZeroConf.cpp.


The documentation for this class was generated from the following files: