-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday 15 August 2002 21:53, [EMAIL PROTECTED] wrote: > I created a program to use the libsmbclient based on Samba 3.0alpha18 and I > am getting an unresolved reference at run time for the above routine called > from smbc_check_server(). > > Could someone tell me where this should be defined and what is needed to > correct it? > Thanks,
This patch should fix it too. apply to libsmb/clientgen.c Tom -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9XCdLX5ZTkmeT2zcRAtmbAJ0XKFb4rr6d3906awJhEBauYvqPiACeOZy2 SRB7KetThAN465s/5DN2PUA= =9e78 -----END PGP SIGNATURE-----
Index: clientgen.c =================================================================== RCS file: /cvsroot/samba/source/libsmb/clientgen.c,v retrieving revision 1.195 diff -u -r1.195 clientgen.c --- clientgen.c 16 Jun 2002 04:21:55 -0000 1.195 +++ clientgen.c 15 Aug 2002 17:11:27 -0000 @@ -313,3 +313,22 @@ cli->pid = pid; return ret; } + + +/**************************************************************************** +Send a keepalive packet to the server +****************************************************************************/ +BOOL cli_send_keepalive(struct cli_state *cli) +{ + if (cli->fd == -1) { + DEBUG(3, ("cli_send_keepalive: fd == -1\n")); + return False; + } + if (!send_keepalive(cli->fd)) { + close(cli->fd); + cli->fd = -1; + DEBUG(0,("Error sending keepalive packet to client.\n")); + return False; + } + return True; +}