Displaying 5 results from an estimated 5 matches for "sendback".
Did you mean:
send_ack
2016 Jul 11
0
Proposal for technique to stop a timer at any moment
..., va, 0);
va_end(va);
diff -rup nut-2.7.4.orig/server/netget.c nut-2.7.4.dev/server/netget.c
--- nut-2.7.4.orig/server/netget.c 2016-03-08 13:01:11.000000000 +0100
+++ nut-2.7.4.dev/server/netget.c 2016-06-29 15:36:45.829340912 +0200
@@ -44,6 +44,51 @@ static void get_numlogins(nut_ctype_t *c
sendback(client, "NUMLOGINS %s %d\n", upsname, ups->numlogins);
}
+/* The SIGUSR1 and SIGUSR2 signals to the UPS's are received and remembered
+ by the server on behalf of the UPS's. RP */
+static void get_sigusr1(nut_ctype_t *client, const char *upsname)
+{
+ upstype_t *ups;
+
+...
2007 May 25
0
Patch -- SVN revision in the version string
...r *fmt, ...)
__attribute__ ((__format__ (__printf__, 2, 3)));
void upslogx(int priority, const char *fmt, ...)
Index: server/netget.c
===================================================================
--- server/netget.c (revision 916)
+++ server/netget.c (working copy)
@@ -165,13 +165,13 @@
sendback(client, "VAR %s server.info "
"\"Network UPS Tools upsd %s - "
"http://www.networkupstools.org/\"\n",
- upsname, UPS_VERSION);
+ upsname, upsversion());
return;
}
if (!strcasecmp(var, "server.version")) {
sendback(client, &q...
2007 Jan 29
0
Antwort: Re: "no longer stale" when disconnected with 2.0.5
...that would break the line with 'write: ...' on it, which
looked rather ugly. Bummer, since the rtrim() function that I used will
strip it from the answer sent to the connecting client also, the answer
will now be shorter than expected and miss the trailing '\n'
(server/upsd.c):
int sendback(ctype *client, const char *fmt, ...)
[...]
upsdebugx(2, "write: [destfd=%d] [len=%d] [%s]",
client->fd, len, rtrim(ans, '\n'));
if (client->ssl)
res = ssl_write(client, ans, len);
else
res = write(client->fd, ans, len);
The solution is to move the line with up...
2006 Jul 22
17
Problem getting form_remote_tag to work with image upload
Hey guys,
I am trying to pass the parameters for the file being upload, but the
params[] are not being passed. Ive read through some posts and realize
this is an issue with RoR.
I read through some of the posts and someone suggested using:
http://svn.kylemaxwell.com/form_remote_upload/trunk/
I tried to install it, and although I thought I installed it correctly,
it doesn''t work.
2007 Jan 23
2
Re: [nut-commits] svn commit r731
.../upsd.h Sat Jan 13 21:22:28 2007
> @@ -50,6 +50,8 @@
> upstype *get_ups_ptr(const char *upsname);
> int ups_available(const upstype *ups, ctype *client);
>
> +void listen_add(const char *addr, const char *port);
> +
> void kick_login_clients(const char *upsname);
> int sendback(ctype *client, const char *fmt, ...)
> __attribute__ ((__format__ (__printf__, 2, 3)));
>
> Modified: trunk/server/upstype.h
> ==============================================================================
> --- trunk/server/upstype.h (original)
> +++ trunk/server/upstype.h Sat...