* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* Please read the file COPYING, README and AUTHORS for more information.
- *
- * Connection management: Global functions
*/
#include "portab.h"
+/**
+ * @file
+ * Connection management: Global functions
+ */
+
#include "imp.h"
#include <assert.h>
#include <string.h>
return My_Connections[Idx].bytes_in;
} /* Conn_RecvBytes */
+/**
+ * Return the remote IP address of this connection as string.
+ */
+GLOBAL const char *
+Conn_IPA(CONN_ID Idx)
+{
+ assert (Idx > NONE);
+ return ng_ipaddr_tostr(&My_Connections[Idx].addr);
+}
+
GLOBAL void
Conn_ResetWCounter( void )