Commit Graph
24 Commits
Author SHA1 Message Date
mmdolze 90107086ea Remove native win32 support. We have no report that LCDproc can be natively
compiled and used with recent Windows systems (Windows Vista/7). Except for
serial drivers (and those using USB->serial adapters) drivers are not expected
to work with those systems.
2010-04-10 18:07:18 +00:00
mmdolze 66023939a1 Cleanup and documentation updates:
- Remove shared/str.h where not used.
- Remove shared/debug.h from all files as it has been completely replaced
  by shared/report.h (it will be removed later).
- Add more doxygen comments to shared/* and clients/lcdproc/*.
- Include static functions in doxygen output.
2010-02-02 23:20:29 +00:00
marschap 1899ff755c make including config.h always depend on HAVE_CONFIG_H; replace printf() by debug() 2007-06-17 10:20:55 +00:00
marschap 5fc4dfc562 fix sock_connect() to return -1 on all errors (Frederick Nacino) 2006-05-07 10:08:31 +00:00
marschap d4a3e7444d cleanup: remove unnecessary (=invisible) leading spaces 2006-04-27 15:10:59 +00:00
marschap 08574b8baa silence 2 more warningsi; fix a potential NULL assignment on the way 2006-04-14 09:59:54 +00:00
marschap 09cb8d86b5 remove debugging cruft 2006-04-13 07:21:00 +00:00
marschap d2bafd9cdc make sure error messages to the client are always '\0'-terminated 2006-04-12 16:49:15 +00:00
boercher 7674db0eb5 avoid Doxygen warnings 2005-10-25 22:38:19 +00:00
boercher 93f162ff48 - new socket function sock_send_error() and
sock_printf_error(): factored out the 'huh?-stuff, added error report
 log)
- use sock_printf() and sock_printf_error() if necessary (no need to
  use sprintf())
2005-07-17 16:14:07 +00:00
marschap 9ead481dbb remove duplicate code: make sock_send_string() depend on sock_send();
use defined constants and character constants instead of simple ascii values;
new function sock_printf(): format data using vsnprintf and send it
2005-05-21 14:55:46 +00:00
marschap 06f6590c9c eliminate compiler warnings (VB) 2005-04-05 07:28:18 +00:00
robijn 80aa4d3d1e Fixed tiny bug in sock_recv_string that caused some clients to hang. 2004-02-06 16:33:55 +00:00
blt 67cae9e447 Add support for Winsock library and logging to the windows event log 2003-08-06 12:11:54 +00:00
robijn c8fc08f6e3 Reporting cleaned up and levels made more consistent. 2002-07-14 20:30:33 +00:00
robijn 285d29edf3 Reporting patch. 2001-11-29 14:09:13 +00:00
gfk 8b19e5bc12 patch to initialize sockaddr by Jarda Benkovsky 2001-10-19 22:26:58 +00:00
ppokorny 00cc9fca23 + Changed protocol to 0.3 because we now accept both -foo and foo
as argument introducers.  in 0.4-pre10, these were changed
   from foo to -foo and this broke many clients.  This change
   should fix that and be backward/forward compatible.
 + Added a noop function to the protocol.  This is useful for writing
   shell script clients of LCDproc.
 + Changed the shared sock_send_string function to NOT send the
   ending NUL ('\0') byte with the string.  This was confusing
   in Perl clients which saw NUL's as the first character of
   each reply.  WARNING: The LCDPROC client depended on this
   behavior, your client may too.  Use the newline instead.
   See the code in clients/lcdproc/main.c (look for "switch(buf[i])")
   to see one way to handle this.  This should allow new clients
   to connect to old servers and vice-versa.
 + Messed with include structure in .c files.  It should no longer
   be necessary to specify ../.. to get to shared code headers.
   Also, since we are using automake, the global config.h can be
   found with just #include "config.h" as it's location is included
   in a -I to the compilers.  As a result "make distcheck" now works.
2001-05-25 03:14:27 +00:00
ppokorny 3fff6381b0 Fixed problems on systems using newer GLIB and GCC (2.96) which no
longer allow the -Wp,-lang-c-c++-comments directive.  Also cleaned
up getloadavg support that had problems on Solaris and RedHat 7.1.
Removed unused variables in a number of functions as a result of
warnings when compiled with --enable-debug config option.
2001-05-15 01:55:59 +00:00
William Ferrell 6a115b4446 More formatting changes, new tags file. 2000-04-03 22:13:57 +00:00
William Ferrell ddfd41f53e More formatting updates. Reduced whitespace, looks even better. 2000-03-30 20:43:33 +00:00
William Ferrell a98c8109a8 Added a tags file. I dunno if this is something that's really supposed to
be in a CVS repository, but for now, it is, so there. :)
2000-03-30 20:28:01 +00:00
jrray 8411ee67d1 Made sock_recv_string work.
sock_send_string and sock_send "corrected" to handle cases where not all
	the bytes intended to be sent are actually sent (must loop to
	send the remaining bytes).
File descriptors were not actually being closed by sock_close (they were
	only being shutdown).
2000-02-14 13:38:39 +00:00
William Ferrell 2635c3085d Initial revision 1999-12-09 23:15:14 +00:00