#include <sock.h>
Inheritance diagram for SST::SocketHostState:
Public Member Functions | |
QList< Socket * > | activeSockets () |
Obtain a list of all currently active sockets. | |
QList< Endpoint > | activeLocalEndpoints () |
Get a list of all known local endpoints for all active sockets. | |
SocketReceiver * | lookupReceiver (quint32 magic) |
virtual Socket * | newSocket (QObject *parent=NULL) |
Create a new network Socket. | |
Socket * | initSocket (QSettings *settings=NULL, int defaultport=NETSTERIA_DEFAULT_PORT) |
Create and get at least one Socket up and running. | |
Friends | |
class | Socket |
class | SocketReceiver |
This class encapsulates all the state for this module that would normally be held in global/static variables.
|
Obtain a list of all currently active sockets. Used by upper-level protocols (e.g., key exchange, registration) to send out initial discovery messages on all available sockets. Subsequent messages normally get sent only to the specific socket a discovery response was seen on.
|
|
Create and get at least one Socket up and running. This function only creates one socket no matter how many times it is called. It exits the application via qFatal() if socket creation fails.
|
|
Create a new network Socket. The default implementation creates a UdpSocket, but this may be overridden to virtualize the network. |