gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r8195 - in libmicrohttpd: . src/daemon src/include


From: gnunet
Subject: [GNUnet-SVN] r8195 - in libmicrohttpd: . src/daemon src/include
Date: Thu, 5 Feb 2009 20:22:00 -0700 (MST)

Author: grothoff
Date: 2009-02-05 20:22:00 -0700 (Thu, 05 Feb 2009)
New Revision: 8195

Modified:
   libmicrohttpd/ChangeLog
   libmicrohttpd/src/daemon/connection_https.c
   libmicrohttpd/src/include/microhttpd.h
Log:
allow clients to get address information later

Modified: libmicrohttpd/ChangeLog
===================================================================
--- libmicrohttpd/ChangeLog     2009-02-05 08:47:16 UTC (rev 8194)
+++ libmicrohttpd/ChangeLog     2009-02-06 03:22:00 UTC (rev 8195)
@@ -1,3 +1,7 @@
+Thu Feb  5 20:21:08 MST 2009
+        Allow getting address information about the connecting
+        client after the accept call. -CG
+
 Mon Feb  2 22:21:48 MST 2009
         Fixed missing size adjustment for offsets for %-encoded
         arguments processed by the post processor (Mantis #1447). -CG/SN

Modified: libmicrohttpd/src/daemon/connection_https.c
===================================================================
--- libmicrohttpd/src/daemon/connection_https.c 2009-02-05 08:47:16 UTC (rev 
8194)
+++ libmicrohttpd/src/daemon/connection_https.c 2009-02-06 03:22:00 UTC (rev 
8195)
@@ -64,6 +64,8 @@
       return (const union MHD_ConnectionInfo *) &connection->
         tls_session->security_parameters.version;
 #endif
+    case MHD_CONNECTION_INFO_CLIENT_ADDRESS:
+      return (const union MHD_ConnectionInfo *) &connection->addr;
     default:
       return NULL;
     };

Modified: libmicrohttpd/src/include/microhttpd.h
===================================================================
--- libmicrohttpd/src/include/microhttpd.h      2009-02-05 08:47:16 UTC (rev 
8194)
+++ libmicrohttpd/src/include/microhttpd.h      2009-02-06 03:22:00 UTC (rev 
8195)
@@ -1,6 +1,6 @@
 /*
      This file is part of libmicrohttpd
-     (C) 2006, 2007, 2008 Christian Grothoff (and other contributing authors)
+     (C) 2006, 2007, 2008, 2009 Christian Grothoff (and other contributing 
authors)
 
      This library is free software; you can redistribute it and/or
      modify it under the terms of the GNU Lesser General Public
@@ -81,7 +81,7 @@
 /**
  * Current version of the library.
  */
-#define MHD_VERSION 0x00040000
+#define MHD_VERSION 0x00040001
 
 /**
  * MHD-internal return codes.
@@ -552,7 +552,13 @@
    *
    * Takes no extra arguments.
    */
-  MHD_CONNECTION_INFO_PROTOCOL
+  MHD_CONNECTION_INFO_PROTOCOL,
+
+  /**
+   * Obtain IP address of the client.
+   * Takes no extra arguments.   
+   */
+  MHD_CONNECTION_INFO_CLIENT_ADDRESS
 };
 
 /**
@@ -1118,6 +1124,10 @@
 {
   enum MHD_GNUTLS_CipherAlgorithm cipher_algorithm;
   enum MHD_GNUTLS_Protocol protocol;
+  /**
+   * Address information for the client.
+   */
+  struct sockaddr_in * client_addr;
 };
 
 /**





reply via email to

[Prev in Thread] Current Thread [Next in Thread]