os_if.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file    os_if.h
00006  *
00007  *  sockets local interfaces
00008  *
00009  *  os_if.h,v 1.5 2006/05/30 12:17:10 jwillemsen Exp
00010  *
00011  *  @author Don Hinton <dhinton@dresystems.com>
00012  *  @author This code was originally in various places including ace/OS.h.
00013  */
00014 //=============================================================================
00015 
00016 #ifndef ACE_OS_INCLUDE_NET_OS_IF_H
00017 #define ACE_OS_INCLUDE_NET_OS_IF_H
00018 
00019 #include /**/ "ace/pre.h"
00020 
00021 #include "ace/config-all.h"
00022 
00023 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00024 # pragma once
00025 #endif /* ACE_LACKS_PRAGMA_ONCE */
00026 
00027 #if defined (ACE_NEEDS_IPC_1C_H)
00028    // LynxOS 3.1.0 and later need this
00029 #  include /**/ <ipc_1c.h>
00030 #endif /* ACE_NEEDS_IPC_1C_H */
00031 
00032 #if !defined (ACE_LACKS_NET_IF_H)
00033    // This part if to avoid STL name conflict with the map structure
00034    // in net/if.h.
00035 #  if defined (ACE_HAS_STL_MAP_CONFLICT)
00036 #    define map _Resource_Allocation_Map_
00037 #  endif /* ACE_HAS_STL_MAP_CONFLICT */
00038    extern "C" {
00039 #  include /**/ <net/if.h>
00040    }
00041 #  if defined (ACE_HAS_STL_MAP_CONFLICT)
00042 #    undef map
00043 #  endif /* ACE_HAS_STL_MAP_CONFLICT */
00044 #  if defined (HPUX) && defined (IOR)
00045    /* HP-UX 11.11 defines IOR in /usr/include/pa/inline.h
00046       and we don't want that definition.  See IOP_IORC.h.
00047       Thanks to Torsten Kopper <tkue_0931@fastmail.fm> for this patch.*/
00048 #    undef IOR
00049 #  endif /* HPUX && IOR */
00050 #endif /* !ACE_LACKS_NET_IF_H */
00051 
00052 // Place all additions (especially function declarations) within extern "C" {}
00053 #ifdef __cplusplus
00054 extern "C"
00055 {
00056 #endif /* __cplusplus */
00057 
00058 #if defined (ACE_HAS_BROKEN_IF_HEADER)
00059    struct ifafilt;
00060 #endif /* ACE_HAS_BROKEN_IF_HEADER */
00061 
00062 #ifdef __cplusplus
00063 }
00064 #endif /* __cplusplus */
00065 
00066 #include /**/ "ace/post.h"
00067 #endif /* ACE_OS_INCLUDE_NET_OS_IF_H */

Generated on Thu Nov 9 09:41:57 2006 for ACE by doxygen 1.3.6