Massive changes (first commit), including but not limited to:
* Ability to specify port and address to bind to * By default, binds only to 127.0.0.1 port 13666 * Client commands now return usage when no options given * New driver command: getinfo * Added comments all over the place * Used #defines to further document code * Used #defines to set up compile-time defaults, etc. * Cleaned up client command argument analysis in client_functions.c * Beginning support of syslog * Some bug fixes
This commit is contained in:
+2
-2
@@ -112,7 +112,7 @@ screenlist_current ()
|
||||
c = old_s->parent;
|
||||
if (c) // Tell the client we're not listening any more...
|
||||
{
|
||||
sprintf (str, "ignore %s\n", old_s->id);
|
||||
snprintf (str, sizeof(str), "ignore %s\n", old_s->id);
|
||||
sock_send_string (c->sock, str);
|
||||
} else // The server has the display, so do nothing
|
||||
{
|
||||
@@ -125,7 +125,7 @@ screenlist_current ()
|
||||
c = s->parent;
|
||||
if (c) // Tell the client we're paying attention...
|
||||
{
|
||||
sprintf (str, "listen %s\n", s->id);
|
||||
snprintf (str, sizeof(str), "listen %s\n", s->id);
|
||||
sock_send_string (c->sock, str);
|
||||
} else // The server has the display, so do nothing
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user