summaryrefslogtreecommitdiff
path: root/ace/ACE.h
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1997-06-07 21:54:48 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1997-06-07 21:54:48 +0000
commit514af5982488fc39bd6d84cd1d0c136c8bd17770 (patch)
tree4ee79b964f09aae64e24e8317f94628fca3a2dcd /ace/ACE.h
parent5530619ab5862a1d3471c9d18b35a650e13706ac (diff)
downloadATCD-514af5982488fc39bd6d84cd1d0c136c8bd17770.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/ACE.h')
-rw-r--r--ace/ACE.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/ace/ACE.h b/ace/ACE.h
index d1be96b9856..be437b9ab2f 100644
--- a/ace/ACE.h
+++ b/ace/ACE.h
@@ -24,6 +24,7 @@ class ACE_Time_Value;
class ACE_Thread_Manager;
class ACE_Reactor;
class ACE_Event_Handler;
+class ACE_INET_Addr;
class ACE_Export ACE_Stdin_Args
{
@@ -217,6 +218,22 @@ public:
// socket internally (and free it). Returns -1 on failure and 0 on
// success.
+ static int get_ip_interfaces (ACE_UINT32 &count,
+ ACE_INET_Addr *&addr_array);
+ // Return count and array of all configured IP interfaces on this
+ // host, rc = 0 on success (count == number of interfaces else -1).
+ // Caller is responsible for calling delete [] on <addr_array>.
+
+ static int count_interfaces (ACE_HANDLE handle,
+ size_t &how_many);
+ // Helper routine for get_ip_interfaces, differs by UNIX platform so
+ // put into own subroutine. perform some ioctls to retrieve ifconf
+ // list of ifreq structs.
+
+ static ACE_HANDLE get_handle (void);
+ // Routine to return a handle from which <ioctl> requests can be
+ // made. Caller must <close> the handle.
+
static int handle_timed_accept (ACE_HANDLE listener,
ACE_Time_Value *timeout,
int restart);