]> code.citadel.org Git - citadel.git/blobdiff - citadel/server.h
* Shut off hostname resolution when dealing with Unix domain sockets
[citadel.git] / citadel / server.h
index 757858aad2d7e26065ff81be201d4f799ef0e9c3..9b105bf85db544ba70bd8254680c72cdc723ad83 100644 (file)
@@ -63,6 +63,7 @@ struct CitContext {
        int internal_pgm;       /* authenticated as internal program */
        char temp[32];          /* temp file name */
        int nologin;            /* not allowed to log in */
+       int is_local_socket;    /* set to 1 if client is on unix domain sock */
 
        char net_node[32];      /* Is the client another Citadel server? */
        int client_socket;
@@ -329,6 +330,7 @@ enum {
 struct ServiceFunctionHook {
        struct ServiceFunctionHook *next;
        int tcp_port;
+       char *sockpath;
        void (*h_greeting_function) (void) ;
        void (*h_command_function) (void) ;
        int msock;
@@ -413,7 +415,7 @@ struct ser_ret {
 
 
 /* Preferred field order */
-/*               *********                     Important fields */
-/*                        ****************     Semi-important fields */
+/*               **********                    Important fields */
+/*                         ***************     Semi-important fields */
 /*                                        *    Message text (MUST be last) */
-#define FORDER "IPTAONHRDBCEFGJKLQSUVWXYZM"
+#define FORDER "IPTAFONHRDBCEGJKLQSUVWXYZM"