howto check a server is online

Stef Bon stefbon at gmail.com
Fri Feb 4 08:41:18 MST 2011


Hello,

I've posted a message here before, and I got pointed to the
examples/libsmbcleint directory in the source.

My question is howto check a smb server is onlin?

I've found:


/**@ingroup callback
 * Check if a server is still good
 *
 * @param c         pointer to smb context
 *
 * @param srv       pointer to server to check
 *
 * @return          0 when connection is good. 1 on error.
 *
 */
typedef int (*smbc_check_server_fn)(SMBCCTX * c, SMBCSRV *srv);

in libsmbclient.h


but I cannot find the exact struct SMBCSRV.

In my fs the name and the opv4 address is available, as well
information about the way to auth, guest, credentials or kerberos.


Thanks in advance,

Stef Bon
Voorburg


More information about the samba-technical mailing list