1 #ifndef VFS_TCP_MOUNT_H
2 #define VFS_TCP_MOUNT_H
10 #define VFS_TCP_MOUNT_PING_TIME_MS (1000*60*5)
21 Q_INVOKABLE
VFS_tcp_mount(QString name, QString
path, QString address, quint16 port, quint16 interval=3000,
bool ssl=
false, QString sslCertPath=
"");
59 virtual QByteArray
icon();
VFS_node is the base class from which all other VFS_node classes derive.
The base class for all requests between nodes.
The socket client created by VFS_tcp_export.
A VFS_node_interface implementation used to route code requests to other VFS instances.
The VFS_tcp_mount class is a client side connection that will attempt to connect to another VFS insta...
void timerEvent(QTimerEvent *e=nullptr)
DOCME.
void issueUnmounted()
VFS_tcp_mount::issueUnmounted.
QString _path
The path to this node.
void attemptConnection()
DOCME.
static QList< VFS_tcp_mount * > _mounts
The list of existing mounts.
virtual void stopPing()
DOCME.
QTimer _ping
The ping timer object.
void sendUnmountedRequests()
DOCME.
postID _currentID
The current VFS_request_id.
void refreshSubscriptions()
Resubscribe to what had been previously subscribed.
virtual QByteArray icon()
Fetch the icon for this node.
void sendMessage(QByteArray message)
send a message over the line
int _timerID
The ID of the connection timer.
bool isMounted()
Return the state of _mounted.
virtual void startPing()
DOCME.
QString _name
The name of this node for logging purposes.
bool _mounted
Is this mounted?
virtual void sendPing()
DOCME.
void issueMounted(QString path)
VFS_tcp_mount::issueMounted.
QMap< postID, VFS_request * > _requests
Outstanding VFS_requests.
postID getNewRequestID()
DOCME.
virtual void startConnecting()
DOCME.
virtual void unsubscribeAll(VFS_node *n)
Remove all references to a subscriber from this node.
QString path()
Return the path to this node.
virtual void receiveMessage(QByteArray message)
virtual VFS_node * find(VFS_request *r)
Always return 'this'.
virtual bool isContainer()
virtual void stopConnecting()
DOCME.
static QMutex _mountsLock
A mutex for modifying the _mounts entry.
virtual void executeRequest(VFS_request *r)
DOCME.
VFS_tcp_mount_directory _codeDirectory
The directory of code available when mounted.
QList< VFS_request * > _unmountedRequests
Requests to submit when re-mounted.
int _attemptInterval
The interval to attempt (re)connections.
Q_INVOKABLE VFS_tcp_mount(QString name, QString path, QString address, quint16 port, quint16 interval=3000, bool ssl=false, QString sslCertPath="")
VFS_tcp_mount constructor.