]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - server.h
Add some more FEC source code documentation.
[paraslash.git] / server.h
index b37c9f13921908701f284f989ef17ac7c2c6bb24..a0dfd2da059c2e1958b7e785b1f9489437d8c588 100644 (file)
--- a/server.h
+++ b/server.h
@@ -1,15 +1,17 @@
 /*
- * Copyright (C) 1997-2008 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 1997-2009 Andre Noll <maan@systemlinux.org>
  *
  * Licensed under the GPL v2. For licencing details see COPYING.
  */
 
 /** \file server.h Common server data structures. */
 
-
 /** Size of the selector_info and audio_file info strings of struct misc_meta_data. */
 #define MMD_INFO_SIZE 16384
 
+/** The maximum length of the host component in an URL */
+#define MAX_HOSTLEN    256
+
 /**
  * Defines one command of para_server.
  */
@@ -35,7 +37,7 @@ struct sender_command_data{
        /** The number of the sender in question. */
        int sender_num;
        /** Used for the allow/deny/add/remove subcommands. */
-       struct in_addr addr;
+       char host[MAX_HOSTLEN];
        /** Used for allow/deny. */
        int netmask;
        /** The port number for add/remove. */
@@ -106,3 +108,4 @@ struct misc_meta_data {
 extern struct server_args_info conf;
 
 __noreturn void handle_connect(int fd, const char *peername);
+void parse_config_or_die(int override);