+2002-02-09 joe c <marcus@marcuscom.com>
+ * etc/afpd/afp_options.c: Redo the -server_notif flag. Now, server
+ notifications are enabled by default, and specifying the -client_polling
+ flag will disable them.
+
2002-02-06 joe c <marcus@marcuscom.com>
* etc/afpd/globals.h, etc/afpd/afp_options.c, etc/afpd/status.c
etc/afpd/volume.c: Add a new option -server_notif to specify that
# -loginmesg "Message" Client will display "Message" upon logging in
# (no default, same as -l "Message" on commandline)
# -nodebug Switch off debugging
+# -client_polling Disable server notifications. This forces the
+# clients to poll every 10 seconds for directory
+# updates. Note, currently this is the only way to
+# get asynchronous updates.
# -tickleval <number> Specify the tickle timeout interval (in seconds).
# Note, this defaults to 30 seconds, and really
# shouldn't be changed. If you want to control
(no default, same as -l "Message" on
command-line)
-nodebug Switch off debugging
+ -client_polling Disable server notifications. This forces the
+ clients to poll every 10 seconds for directory updates. Note,
+ currently this is the only way to get asynchronous updates.
-ticklevel <number> Specify the tickle timeout interval (in seconds)
+ -timeout <number> Specify the number of tickles to miss before tearing
+ down a client connection
-icon Use the platform-specific icon.
An example:
/*
- * $Id: afp_options.c,v 1.18 2002-02-06 21:58:50 jmarcus Exp $
+ * $Id: afp_options.c,v 1.19 2002-02-09 17:13:53 jmarcus Exp $
*
* Copyright (c) 1997 Adrian Sun (asun@zoology.washington.edu)
* Copyright (c) 1990,1993 Regents of The University of Michigan.
options->passwdfile = _PATH_AFPDPWFILE;
options->tickleval = 30;
options->timeout = 4;
- options->server_notif = 0;
+ options->server_notif = 1;
options->authprintdir = NULL;
options->umask = 0;
#ifdef ADMIN_GRP
options->transports |= AFPTRANS_DDP;
if (strstr(buf, " -noddp"))
options->transports &= ~AFPTRANS_DDP;
+ if (strstr(buf, "-client_polling"))
+ options->server_notif = 0;
/* figure out options w/ values. currently, this will ignore the setting
* if memory is lacking. */
options->timeout = 4;
}
}
- if ((c = getoption(buf, "-server_notif"))) {
- options->server_notif = 1;
- }
if ((c = getoption(buf, "-server_quantum")))
options->server_quantum = strtoul(c, NULL, 0);