virtual const char * getLastError() const
Raw, implementation-specific detail behind the last failure.
virtual SmbConnectResult connect(const SmbShareInfo &info)=0
Attempts to connect and mount in one call.
virtual bool isConnected() const =0
virtual const char * connectResultMessage(SmbConnectResult result) const =0
Short, user-displayable reason for a non-Success SmbConnectResult.
virtual void shutdown()=0
Disconnects if connected and releases whatever init() set up.
virtual bool isNetworkUp() const =0
True if the network is already up, i.e.
virtual bool ensureNetworkUp()=0
Brings the network up if it isn't already.
virtual const char * getMountPath() const =0
devoptab-style mount path (eg.
virtual void disconnect()=0
Unmounts and drops the connection.
virtual void init()=0
One-time setup.
SmbConnectResult
Result of a single connect() attempt.
@ ConnectFailed
network's up but the server/share/credentials didn't work
@ InvalidSettings
host or share is empty - nothing to try
@ NetworkUnavailable
no usable network connection at all
Credentials/target for a single SMB share.
char share[64]
share name, eg.
char password[32]
"" for guest/anonymous
char user[32]
"" for guest/anonymous
char host[64]
server IP or hostname