1 #ifndef VFS_TCP_EXPORT_H
2 #define VFS_TCP_EXPORT_H
17 QHostAddress address=QHostAddress::Any,
19 QString sslCertPath=
"",
20 QString sslKeyPath=
"",
22 QString broadcastName=
"",
23 QString broadcastAddress=
"",
24 QString multicastAddress=
"",
25 quint16 multicastPort=0,
26 QJsonArray tags=QJsonArray()
36 virtual VFS_tcp_client *
newClient(QTcpSocket *socket,
bool ssl=
false, QSslConfiguration sslConfiguration=QSslConfiguration());
38 virtual QByteArray
icon();
Open a listening TCP socket for mounting one VFS into another.
virtual ~VFS_tcp_export()
Q_INVOKABLE VFS_tcp_export(QString exportRoot, quint16 port, QHostAddress address=QHostAddress::Any, bool ssl=false, QString sslCertPath="", QString sslKeyPath="", QByteArray icon="", QString broadcastName="", QString broadcastAddress="", QString multicastAddress="", quint16 multicastPort=0, QJsonArray tags=QJsonArray())
VFS_tcp_export constructor.
virtual void timerEvent(QTimerEvent *event)
A timer event has fired, probably for sendBroadcast.
QString _broadcastAddress
virtual VFS_tcp_client * newClient(QTcpSocket *socket, bool ssl=false, QSslConfiguration sslConfiguration=QSslConfiguration())
Create a new VFS_tcp_export_client with the new socket.
QByteArray _icon
The optional override icon.
virtual QByteArray icon()
VFS_tcp_mount::icon.
virtual void startBroadcast()
Start broadcasting this mount.
QHostAddress _multicastAddress
virtual QString reportDetails()
Report details of this node.
QString _exportRoot
The VFS path to export.
virtual bool listen()
Open the server socket and listen for new connections.
QUdpSocket _broadcastSocket
virtual void sendBroadcast()
Broadcast information about this mount to the network.
virtual void clientMessage(QByteArray message)
A client message has been received.
Open a listening TCP port for other clients to connect to.