diff options
author | brunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-02-08 22:12:13 +0000 |
---|---|---|
committer | brunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-02-08 22:12:13 +0000 |
commit | 79215de6512589bb0ad2a43d5c8c4a0112bba4d8 (patch) | |
tree | 42dbf7fa8089fbe99734dcf0aba8f812c58d748e /ace | |
parent | 90d2dc361379345b20df5e217d427369d6aead2c (diff) | |
download | ATCD-79215de6512589bb0ad2a43d5c8c4a0112bba4d8.tar.gz |
ChangeLogTag:Thu Feb 8 14:11:36 2001 Darrell Brunsch <brunsch@uci.edu>
Diffstat (limited to 'ace')
-rw-r--r-- | ace/Makefile.am | 3 | ||||
-rw-r--r-- | ace/OS.h | 2 | ||||
-rw-r--r-- | ace/SOCK_Dgram_Mcast.cpp | 24 | ||||
-rw-r--r-- | ace/Sock_Connect.cpp | 15 | ||||
-rw-r--r-- | ace/ace-dll.icc | 520 | ||||
-rw-r--r-- | ace/ws2tcpip.h | 90 |
6 files changed, 25 insertions, 629 deletions
diff --git a/ace/Makefile.am b/ace/Makefile.am index 6419a8286ed..8b1a4add905 100644 --- a/ace/Makefile.am +++ b/ace/Makefile.am @@ -780,8 +780,7 @@ HEADER_FILES = \ post.h \ pre.h \ streams.h \ - svc_export.h \ - ws2tcpip.h + svc_export.h ## Make sure config.h and config-all.h are in the above header list! INLINE_FILES = \ @@ -3252,7 +3252,7 @@ PAGE_NOACCESS PAGE_NOCACHE */ # if defined (ACE_HAS_WINSOCK2) && (ACE_HAS_WINSOCK2 != 0) -# include "ace/ws2tcpip.h" +# include /**/ <ws2tcpip.h> # endif /* ACE_HAS_WINSOCK2 */ // error code mapping diff --git a/ace/SOCK_Dgram_Mcast.cpp b/ace/SOCK_Dgram_Mcast.cpp index 63c211b4811..8d1b17253b2 100644 --- a/ace/SOCK_Dgram_Mcast.cpp +++ b/ace/SOCK_Dgram_Mcast.cpp @@ -68,23 +68,25 @@ ACE_SOCK_Dgram_Mcast::open (const ACE_Addr &mcast_addr, return -1; #endif /* SO_REUSEPORT */ -#if 0 - // @@ Revert this code if the following call to shared_open() fails... - // Create an address to bind the socket to. - ACE_INET_Addr local; +#if defined (ACE_WIN32) + + // Create an address to bind the socket to. + ACE_INET_Addr local; - if (local.set (this->mcast_addr_.get_port_number ()) == -1) - return -1; - else if (ACE_SOCK_Dgram::shared_open (local, - protocol_family) == -1) - return -1; - } -#endif /* 0 */ + if (local.set (this->mcast_addr_.get_port_number ()) == -1) + return -1; + else if (ACE_SOCK_Dgram::shared_open (local, + protocol_family) == -1) + return -1; + +#else /* ACE_WIN32 */ // Create an address to bind the socket to. if (ACE_SOCK_Dgram::shared_open (this->mcast_addr_, protocol_family) == -1) return -1; + +#endif /* ACE_WIN32 */ } return 0; diff --git a/ace/Sock_Connect.cpp b/ace/Sock_Connect.cpp index f5e094a52ab..d39a3fd073f 100644 --- a/ace/Sock_Connect.cpp +++ b/ace/Sock_Connect.cpp @@ -305,7 +305,7 @@ ACE_Sock_Connect::get_bcast_addr (ACE_UINT32 &bcast_addr, int ACE_Sock_Connect::get_ip_interfaces (size_t &count, - ACE_INET_Addr *&addrs) + ACE_INET_Addr *&addrs) { ACE_TRACE ("ACE_Sock_Connect::get_ip_interfaces"); @@ -324,9 +324,9 @@ ACE_Sock_Connect::get_ip_interfaces (size_t &count, defined (_MSC_VER) && (_MSC_VER >= 1100) #endif /* 0 */ - int i, n_interfaces, status; + int i, n_interfaces, status; + INTERFACE_INFO info[64]; - LPINTERFACE_INFO lpii; SOCKET sock; // Get an (overlapped) DGRAM socket to test with @@ -337,8 +337,10 @@ ACE_Sock_Connect::get_ip_interfaces (size_t &count, DWORD bytes; status = WSAIoctl(sock, SIO_GET_INTERFACE_LIST, - 0, 0, - info, sizeof(info), + 0, + 0, + info, + sizeof(info), &bytes, 0, 0); @@ -358,6 +360,7 @@ ACE_Sock_Connect::get_ip_interfaces (size_t &count, // because they're down or don't have an IP address. for (count = 0, i = 0; i < n_interfaces; i++) { + LPINTERFACE_INFO lpii; struct sockaddr_in *addrp; lpii = &info[i]; @@ -370,7 +373,7 @@ ACE_Sock_Connect::get_ip_interfaces (size_t &count, continue; // Set the address for the caller. - addrs[count].set(addrp, sizeof(lpii->iiAddress)); + addrs[count].set(addrp, sizeof(sockaddr_in)); ++count; } diff --git a/ace/ace-dll.icc b/ace/ace-dll.icc index 31629f831a7..b0af1be3411 100644 --- a/ace/ace-dll.icc +++ b/ace/ace-dll.icc @@ -1,519 +1 @@ -// $Id$ -// -// Configuration file to build ACE shared library (aka DLL) on both Win32 -// and AIX using Visual Age C++ 4 (or later) - -if $__TOS_WIN__ { - option PlatformOptions = - define ("ACE_HAS_DLL","0"), - define ("ACE_HAS_WINSOCK2","1"), - define ("ACE_HAS_WCHAR_TYPEDEFS_CHAR","1"), - define ("_stricmp", "stricmp"), - define ("_strnicmp", "strnicmp"), - define ("_O_TEMPORARY", 0x08), - define ("_O_CREAT", "O_CREAT"), - define ("_O_TRUNC", "O_TRUNC"), - define ("_O_EXCL", "O_EXCL"), - define ("WIN32","1"), - define ("_WINDOWS","1"), - define ("_INTEGRAL_MAX_BITS", 64) - TargetType = "dll" - TargetName = "aced.dll" -} -if $__TOS_AIX__ { - option PlatformOptions = - defaults(xlC_r), - gen(check,bounds,no), - link(typecheck,yes), - opt(level, 3), - gen(enumsize, small), - report (disable, "CPPC1125") - TargetType = "shr" - TargetName = "libACE.o" - run after targets("libACE.o") "ar -r -u libACE.a libACE.o" - run cleanup targets("libACE.o") "rm -rf libACE.a libACE.o" -} - -option - PlatformOptions, - link(exportAll), - link(linkwithsharedlib), - link(linkWithMultiThreadLib,yes), - incl(searchpath, "..") - { - target type ( TargetType ) TargetName - { - option macros(global) - { - source type(hpp) 'wchar.h' - source type(hpp) 'wcstr.h' - if $__TOS_WIN__ { - source type(hpp) - 'config-win32-common.h', - 'config-win32-visualage.h', - 'config-visualage.h', - 'config-win32.h', - 'ws2tcpip.h' - } - - source type(hpp) - 'Acceptor.h', - 'ACE.h', - 'Activation_Queue.h', - 'Active_Map_Manager.h', - 'Active_Map_Manager_T.h', - 'Addr.h', - 'ARGV.h', - 'Arg_Shifter.h', - 'Array.h', - 'Asynch_Acceptor.h', - 'Asynch_IO.h', - 'Asynch_IO_Impl.h', - 'ATM_Addr.h', - 'Auto_Ptr.h', - 'Base_Thread_Adapter.h', - 'Based_Pointer_Repository.h', - 'Basic_Stats.h', - 'Basic_Types.h', - 'Cached_Connect_Strategy_T.h', - 'Cache_Map_Manager_T.h', - 'Caching_Strategies_T.h', - 'Caching_Utility_T.h', - 'Capabilities.h', - 'CDR_Base.h', - 'CDR_Stream.h', - 'Cleanup_Strategies_T.h', - 'Codeset_IBM1047.h', - 'config.h', - 'Connector.h', - 'Containers.h', - 'Containers_T.h', - 'CORBA_Handler.h', - 'CORBA_macros.h', - 'CORBA_Ref.h', - 'Date_Time.h', - 'DEV.h', - 'DEV_Addr.h', - 'DEV_Connector.h', - 'DEV_IO.h', - 'Dirent.h', - 'DLL.h', - 'Dump.h', - 'Dump_T.h', - 'Dynamic.h', - 'Dynamic_Service.h', - 'Env_Value_T.h', - 'Event_Handler.h', - 'Event_Handler_T.h', - 'FIFO.h', - 'FIFO_Recv.h', - 'FIFO_Recv_Msg.h', - 'FIFO_Send.h', - 'FIFO_Send_Msg.h', - 'FILE.h', - 'Filecache.h', - 'FILE_Addr.h', - 'FILE_Connector.h', - 'FILE_IO.h', - 'Flag_Manip.h', - 'FlReactor.h', - 'Free_List.h', - 'Functor.h', - 'Functor_T.h', - 'Future.h', - 'Future_Set.h', - 'Get_Opt.h', - 'Handle_Gobbler.h', - 'Handle_Ops.h', - 'Handle_Set.h', - 'Hash_Cache_Map_Manager_T.h', - 'Hash_Map_Manager.h', - 'Hash_Map_Manager_T.h', - 'Hash_Map_With_Allocator_T.h', - 'High_Res_Timer.h', - 'config-all.h', - 'INET_Addr.h', - 'Init_ACE.h', - 'iosfwd.h', - 'IOStream.h', - 'IOStream_T.h', - 'IO_Cntl_Msg.h', - 'IO_SAP.h', - 'IPC_SAP.h', - 'Lib_Find.h', - 'Local_Name_Space.h', - 'Local_Name_Space_T.h', - 'Local_Tokens.h', - 'LOCK_SOCK_Acceptor.h', - 'Log_Msg.h', - 'Log_Msg_Backend.h', - 'Log_Msg_IPC.h', - 'Log_Priority.h', - 'Log_Record.h', - 'LSOCK.h', - 'LSOCK_Acceptor.h', - 'LSOCK_CODgram.h', - 'LSOCK_Connector.h', - 'LSOCK_Dgram.h', - 'LSOCK_Stream.h', - 'Malloc.h', - 'Malloc_Allocator.h', - 'Malloc_Base.h', - 'Malloc_T.h', - 'Managed_Object.h', - 'Map.h', - 'Map_Manager.h', - 'Map_T.h', - 'Memory_Pool.h', - 'Mem_Map.h', - 'Message_Block.h', - 'Message_Block_T.h', - 'Message_Queue.h', - 'Message_Queue_T.h', - 'Method_Object.h', - 'Method_Request.h', - 'Module.h', - 'Msg_WFMO_Reactor.h', - 'Name_Proxy.h', - 'Name_Request_Reply.h', - 'Name_Space.h', - 'Naming_Context.h', - 'NT_Service.h', - 'Object_Manager.h', - 'Obstack.h', - 'OS.h', - 'OS_Dirent.h', - 'OS_Errno.h', - 'OS_Log_Msg_Attributes.h', - 'OS_Memory.h', - 'OS_String.h', - 'OS_Thread_Adapter.h', - 'OS_TLI.h', - 'PI_Malloc.h', - 'POSIX_Asynch_IO.h', - 'POSIX_Proactor.h', - 'Pair.h', - 'Pair_T.h', - 'Parse_Node.h', - 'Pipe.h', - 'Priority_Reactor.h', - 'Proactor.h', - 'Proactor_Impl.h', - 'Process.h', - 'Process_Manager.h', - 'Profile_Timer.h', - 'RB_Tree.h', - 'Reactor.h', - 'Reactor_Impl.h', - 'Read_Buffer.h', - 'Registry.h', - 'Registry_Name_Space.h', - 'Remote_Name_Space.h', - 'Remote_Tokens.h', - 'Sched_Params.h', - 'Select_Reactor.h', - 'Select_Reactor_Base.h', - 'Select_Reactor_T.h', - 'Service_Config.h', - 'Service_Manager.h', - 'Service_Object.h', - 'Service_Repository.h', - 'Service_Types.h', - 'Shared_Memory.h', - 'Shared_Memory_MM.h', - 'Shared_Memory_SV.h', - 'Shared_Object.h', - 'Signal.h', - 'Singleton.h', - 'SOCK.h', - 'SOCK_Acceptor.h', - 'SOCK_CODgram.h', - 'SOCK_Connector.h', - 'SOCK_Dgram.h', - 'SOCK_Dgram_Bcast.h', - 'SOCK_Dgram_Mcast.h', - 'SOCK_IO.h', - 'SOCK_Stream.h', - 'Sock_Connect.h', - 'SPIPE.h', - 'SPIPE_Acceptor.h', - 'SPIPE_Addr.h', - 'SPIPE_Connector.h', - 'SPIPE_Stream.h', - 'SString.h', - 'Stats.h', - 'Strategies.h', - 'Strategies_T.h', - 'Stream.h', - 'streams.h', - 'Stream_Modules.h', - 'Svc_Conf.h', - 'Svc_Conf_Tokens.h', - 'Svc_Handler.h', - 'SV_Message.h', - 'SV_Message_Queue.h', - 'SV_Semaphore_Complex.h', - 'SV_Semaphore_Simple.h', - 'SV_Shared_Memory.h', - 'Synch.h', - 'Process_Semaphore.h', - 'Process_Mutex.h', - 'RW_Process_Mutex.h', - 'File_Lock.h', - 'Synch_Options.h', - 'Synch_T.h', - 'System_Time.h', - 'Task.h', - 'Task_T.h', - 'Thread.h', - 'Thread_Adapter.h', - 'Thread_Control.h', - 'Thread_Exit.h', - 'Thread_Manager.h', - 'Timeprobe.h', - 'Timeprobe_T.h', - 'Timer_Hash.h', - 'Timer_Hash_T.h', - 'Timer_Heap.h', - 'Timer_Heap_T.h', - 'Timer_List.h', - 'Timer_List_T.h', - 'Timer_Queue.h', - 'Timer_Queue_Adapters.h', - 'Timer_Queue_T.h', - 'Timer_Wheel.h', - 'Timer_Wheel_T.h', - 'Time_Request_Reply.h', - 'Time_Value.h', - 'TkReactor.h', - 'TLI.h', - 'TLI_Acceptor.h', - 'TLI_Connector.h', - 'TLI_Stream.h', - 'Token.h', - 'Token_Collection.h', - 'Token_Invariants.h', - 'Token_Manager.h', - 'Token_Request_Reply.h', - 'TP_Reactor.h', - 'Trace.h', - 'TTY_IO.h', - 'Typed_SV_Message.h', - 'Typed_SV_Message_Queue.h', - 'UNIX_Addr.h', - 'UPIPE_Acceptor.h', - 'UPIPE_Addr.h', - 'UPIPE_Connector.h', - 'UPIPE_Stream.h', - 'Version.h', - 'WFMO_Reactor.h', - 'WIN32_Asynch_IO.h', - 'WIN32_Proactor.h', - 'XtReactor.h' - } - source type(cpp) "Log_Msg.cpp" - source type(cpp) "ACE.cpp" - source type(cpp) "Activation_Queue.cpp" - source type(cpp) "Active_Map_Manager.cpp" - source type(cpp) "Addr.cpp" - source type(cpp) "Arg_Shifter.cpp" - source type(cpp) "ARGV.cpp" - source type(cpp) "Asynch_IO.cpp" - source type(cpp) "Asynch_IO_Impl.cpp" - source type(cpp) "Base_Thread_Adapter.cpp" - source type(cpp) "Based_Pointer_Repository.cpp" - source type(cpp) "Basic_Stats.cpp" - source type(cpp) "Basic_Types.cpp" - source type(cpp) "Capabilities.cpp" - source type(cpp) "CDR_Base.cpp" - source type(cpp) "CDR_Stream.cpp" - source type(cpp) "Containers.cpp" - source type(cpp) "CORBA_Handler.cpp" - source type(cpp) "CORBA_Ref.cpp" - source type(cpp) "Date_Time.cpp" - source type(cpp) "DEV.cpp" - source type(cpp) "DEV_Addr.cpp" - source type(cpp) "DEV_Connector.cpp" - source type(cpp) "DEV_IO.cpp" - source type(cpp) "Dirent.cpp" - source type(cpp) "DLL.cpp" - source type(cpp) "Dump.cpp" - source type(cpp) "Dynamic.cpp" - source type(cpp) "Dynamic_Service.cpp" - source type(cpp) "Event_Handler.cpp" - source type(cpp) "FIFO.cpp" - source type(cpp) "FIFO_Recv.cpp" - source type(cpp) "FIFO_Recv_Msg.cpp" - source type(cpp) "FIFO_Send.cpp" - source type(cpp) "FIFO_Send_Msg.cpp" - source type(cpp) "FILE.cpp" - source type(cpp) "FILE_Addr.cpp" - source type(cpp) "FILE_Connector.cpp" - source type(cpp) "FILE_IO.cpp" - source type(cpp) "Filecache.cpp" - source type(cpp) "Flag_Manip.cpp" - source type(cpp) "Functor.cpp" - source type(cpp) "Future.cpp" - source type(cpp) "Get_Opt.cpp" - source type(cpp) "Handle_Ops.cpp" - source type(cpp) "Handle_Set.cpp" - source type(cpp) "Hash_Map_Manager.cpp" - source type(cpp) "High_Res_Timer.cpp" - source type(cpp) "INET_Addr.cpp" - source type(cpp) "Init_ACE.cpp" - source type(cpp) "IO_Cntl_Msg.cpp" - source type(cpp) "IO_SAP.cpp" - source type(cpp) "IOStream.cpp" - source type(cpp) "IPC_SAP.cpp" - source type(cpp) "Lib_Find.cpp" - source type(cpp) "Local_Name_Space.cpp" - source type(cpp) "Local_Tokens.cpp" - source type(cpp) "Log_Msg_Backend.cpp" - source type(cpp) "Log_Msg_IPC.cpp" - source type(cpp) "Log_Record.cpp" - source type(cpp) "LSOCK.cpp" - source type(cpp) "LSOCK_Acceptor.cpp" - source type(cpp) "LSOCK_CODgram.cpp" - source type(cpp) "LSOCK_Connector.cpp" - source type(cpp) "LSOCK_Dgram.cpp" - source type(cpp) "LSOCK_Stream.cpp" - source type(cpp) "Malloc.cpp" - source type(cpp) "Malloc_Allocator.cpp" - source type(cpp) "Map.cpp" - source type(cpp) "Mem_Map.cpp" - source type(cpp) "Memory_Pool.cpp" - source type(cpp) "Message_Block.cpp" - source type(cpp) "Message_Queue.cpp" - source type(cpp) "Method_Request.cpp" - source type(cpp) "Msg_WFMO_Reactor.cpp" - source type(cpp) "Name_Proxy.cpp" - source type(cpp) "Name_Request_Reply.cpp" - source type(cpp) "Name_Space.cpp" - source type(cpp) "Naming_Context.cpp" - source type(cpp) "NT_Service.cpp" - source type(cpp) "Object_Manager.cpp" - source type(cpp) "Obstack.cpp" - source type(cpp) "OS.cpp" - source type(cpp) "OS_Dirent.cpp" - source type(cpp) "OS_Errno.cpp" - source type(cpp) "OS_Log_Msg_Attributes.cpp" - source type(cpp) "OS_Memory.cpp" - source type(cpp) "OS_String.cpp" - source type(cpp) "OS_Thread_Adapter.cpp" - source type(cpp) "OS_TLI.cpp" - source type(cpp) "PI_Malloc.cpp" - source type(cpp) "Pair.cpp" - source type(cpp) "Parse_Node.cpp" - source type(cpp) "Pipe.cpp" - source type(cpp) "Priority_Reactor.cpp" - source type(cpp) "Proactor.cpp" - source type(cpp) "Process.cpp" - source type(cpp) "Process_Manager.cpp" - source type(cpp) "Profile_Timer.cpp" - source type(cpp) "RB_Tree.cpp" - source type(cpp) "Reactor.cpp" - source type(cpp) "Read_Buffer.cpp" - source type(cpp) "Registry.cpp" - source type(cpp) "Registry_Name_Space.cpp" - source type(cpp) "Remote_Name_Space.cpp" - source type(cpp) "Remote_Tokens.cpp" - source type(cpp) "Sched_Params.cpp" - source type(cpp) "Select_Reactor.cpp" - source type(cpp) "Select_Reactor_Base.cpp" - source type(cpp) "Service_Config.cpp" - source type(cpp) "Service_Manager.cpp" - source type(cpp) "Service_Object.cpp" - source type(cpp) "Service_Repository.cpp" - source type(cpp) "Service_Types.cpp" - source type(cpp) "Shared_Memory.cpp" - source type(cpp) "Shared_Memory_MM.cpp" - source type(cpp) "Shared_Memory_SV.cpp" - source type(cpp) "Shared_Object.cpp" - source type(cpp) "Signal.cpp" - source type(cpp) "SOCK.cpp" - source type(cpp) "SOCK_Acceptor.cpp" - source type(cpp) "SOCK_CODgram.cpp" - source type(cpp) "SOCK_Connector.cpp" - source type(cpp) "SOCK_Dgram.cpp" - source type(cpp) "SOCK_Dgram_Bcast.cpp" - source type(cpp) "SOCK_Dgram_Mcast.cpp" - source type(cpp) "SOCK_IO.cpp" - source type(cpp) "SOCK_Stream.cpp" - source type(cpp) "Sock_Connect.cpp" - source type(cpp) "SPIPE.cpp" - source type(cpp) "SPIPE_Acceptor.cpp" - source type(cpp) "SPIPE_Addr.cpp" - source type(cpp) "SPIPE_Connector.cpp" - source type(cpp) "SPIPE_Stream.cpp" - source type(cpp) "SString.cpp" - source type(cpp) "Stats.cpp" - source type(cpp) "Strategies.cpp" - source type(cpp) "SV_Message.cpp" - source type(cpp) "SV_Message_Queue.cpp" - source type(cpp) "SV_Semaphore_Complex.cpp" - source type(cpp) "SV_Semaphore_Simple.cpp" - source type(cpp) "SV_Shared_Memory.cpp" - source type(cpp) "Svc_Conf_l.cpp" - source type(cpp) "Svc_Conf_y.cpp" - source type(cpp) "Synch.cpp" - source type(cpp) "Process_Semaphore.cpp" - source type(cpp) "Process_Mutex.cpp" - source type(cpp) "RW_Process_Mutex.cpp" - source type(cpp) "File_Lock.cpp" - source type(cpp) "Synch_Options.cpp" - source type(cpp) "System_Time.cpp" - source type(cpp) "Task.cpp" - source type(cpp) "Thread.cpp" - source type(cpp) "Thread_Adapter.cpp" - source type(cpp) "Thread_Control.cpp" - source type(cpp) "Thread_Exit.cpp" - source type(cpp) "Thread_Manager.cpp" - source type(cpp) "Time_Request_Reply.cpp" - source type(cpp) "Timeprobe.cpp" - source type(cpp) "Timer_Hash.cpp" - source type(cpp) "Timer_Heap.cpp" - source type(cpp) "Timer_List.cpp" - source type(cpp) "Timer_Queue.cpp" - source type(cpp) "Timer_Queue_Adapters.cpp" - source type(cpp) "Timer_Wheel.cpp" - source type(cpp) "TLI.cpp" - source type(cpp) "TLI_Acceptor.cpp" - source type(cpp) "TLI_Connector.cpp" - source type(cpp) "TLI_Stream.cpp" - source type(cpp) "Token.cpp" - source type(cpp) "Token_Collection.cpp" - source type(cpp) "Token_Invariants.cpp" - source type(cpp) "Token_Manager.cpp" - source type(cpp) "Token_Request_Reply.cpp" - source type(cpp) "TP_Reactor.cpp" - source type(cpp) "Trace.cpp" - source type(cpp) "TTY_IO.cpp" - source type(cpp) "Typed_SV_Message.cpp" - source type(cpp) "Typed_SV_Message_Queue.cpp" - source type(cpp) "UNIX_Addr.cpp" - source type(cpp) "UPIPE_Acceptor.cpp" - source type(cpp) "UPIPE_Connector.cpp" - source type(cpp) "UPIPE_Stream.cpp" - source type(cpp) "WFMO_Reactor.cpp" - source type(cpp) "WIN32_Asynch_IO.cpp" - source type(cpp) "WIN32_Proactor.cpp" - source type(cpp) "XtReactor.cpp" - - // Libraries needed during linking - if $__TOS_WIN__ { - source type (lib) "advapi32.lib" - source type (lib) "user32.lib" - source type (lib) "ws2_32.lib" - source type (lib) "wsock32.lib" - source type (lib) "mswsock.lib" - } - if $__TOS_AIX__ { - source type (lib) "libtli_r.a" - source type (lib) "libpthreads.a" - source type (lib) "libc_r.a" - source type (lib) "libdl.a" - // Imports - source type (imp) "pse.exp" - } - } -} +// $Id$//// Configuration file to build ACE shared library (aka DLL) on both Win32// and AIX using Visual Age C++ 4 (or later)if $__TOS_WIN__ { option PlatformOptions = define ("ACE_HAS_DLL","0"), define ("ACE_HAS_WINSOCK2","1"), define ("ACE_HAS_WCHAR_TYPEDEFS_CHAR","1"), define ("_stricmp", "stricmp"), define ("_strnicmp", "strnicmp"), define ("_O_TEMPORARY", 0x08), define ("_O_CREAT", "O_CREAT"), define ("_O_TRUNC", "O_TRUNC"), define ("_O_EXCL", "O_EXCL"), define ("WIN32","1"), define ("_WINDOWS","1"), define ("_INTEGRAL_MAX_BITS", 64) TargetType = "dll" TargetName = "aced.dll"}if $__TOS_AIX__ { option PlatformOptions = defaults(xlC_r), gen(check,bounds,no), link(typecheck,yes), opt(level, 3), gen(enumsize, small), report (disable, "CPPC1125") TargetType = "shr" TargetName = "libACE.o" run after targets("libACE.o") "ar -r -u libACE.a libACE.o" run cleanup targets("libACE.o") "rm -rf libACE.a libACE.o"}option PlatformOptions, link(exportAll), link(linkwithsharedlib), link(linkWithMultiThreadLib,yes), incl(searchpath, "..") { target type ( TargetType ) TargetName { option macros(global) { source type(hpp) 'wchar.h' source type(hpp) 'wcstr.h' if $__TOS_WIN__ { source type(hpp) 'config-win32-common.h', 'config-win32-visualage.h', 'config-visualage.h', 'config-win32.h', } source type(hpp) 'Acceptor.h', 'ACE.h', 'Activation_Queue.h', 'Active_Map_Manager.h', 'Active_Map_Manager_T.h', 'Addr.h', 'ARGV.h', 'Arg_Shifter.h', 'Array.h', 'Asynch_Acceptor.h', 'Asynch_IO.h', 'Asynch_IO_Impl.h', 'ATM_Addr.h', 'Auto_Ptr.h', 'Base_Thread_Adapter.h', 'Based_Pointer_Repository.h', 'Basic_Stats.h', 'Basic_Types.h', 'Cached_Connect_Strategy_T.h', 'Cache_Map_Manager_T.h', 'Caching_Strategies_T.h', 'Caching_Utility_T.h', 'Capabilities.h', 'CDR_Base.h', 'CDR_Stream.h', 'Cleanup_Strategies_T.h', 'Codeset_IBM1047.h', 'config.h', 'Connector.h', 'Containers.h', 'Containers_T.h', 'CORBA_Handler.h', 'CORBA_macros.h', 'CORBA_Ref.h', 'Date_Time.h', 'DEV.h', 'DEV_Addr.h', 'DEV_Connector.h', 'DEV_IO.h', 'Dirent.h', 'DLL.h', 'Dump.h', 'Dump_T.h', 'Dynamic.h', 'Dynamic_Service.h', 'Env_Value_T.h', 'Event_Handler.h', 'Event_Handler_T.h', 'FIFO.h', 'FIFO_Recv.h', 'FIFO_Recv_Msg.h', 'FIFO_Send.h', 'FIFO_Send_Msg.h', 'FILE.h', 'Filecache.h', 'FILE_Addr.h', 'FILE_Connector.h', 'FILE_IO.h', 'Flag_Manip.h', 'FlReactor.h', 'Free_List.h', 'Functor.h', 'Functor_T.h', 'Future.h', 'Future_Set.h', 'Get_Opt.h', 'Handle_Gobbler.h', 'Handle_Ops.h', 'Handle_Set.h', 'Hash_Cache_Map_Manager_T.h', 'Hash_Map_Manager.h', 'Hash_Map_Manager_T.h', 'Hash_Map_With_Allocator_T.h', 'High_Res_Timer.h', 'config-all.h', 'INET_Addr.h', 'Init_ACE.h', 'iosfwd.h', 'IOStream.h', 'IOStream_T.h', 'IO_Cntl_Msg.h', 'IO_SAP.h', 'IPC_SAP.h', 'Lib_Find.h', 'Local_Name_Space.h', 'Local_Name_Space_T.h', 'Local_Tokens.h', 'LOCK_SOCK_Acceptor.h', 'Log_Msg.h', 'Log_Msg_Backend.h', 'Log_Msg_IPC.h', 'Log_Priority.h', 'Log_Record.h', 'LSOCK.h', 'LSOCK_Acceptor.h', 'LSOCK_CODgram.h', 'LSOCK_Connector.h', 'LSOCK_Dgram.h', 'LSOCK_Stream.h', 'Malloc.h', 'Malloc_Allocator.h', 'Malloc_Base.h', 'Malloc_T.h', 'Managed_Object.h', 'Map.h', 'Map_Manager.h', 'Map_T.h', 'Memory_Pool.h', 'Mem_Map.h', 'Message_Block.h', 'Message_Block_T.h', 'Message_Queue.h', 'Message_Queue_T.h', 'Method_Object.h', 'Method_Request.h', 'Module.h', 'Msg_WFMO_Reactor.h', 'Name_Proxy.h', 'Name_Request_Reply.h', 'Name_Space.h', 'Naming_Context.h', 'NT_Service.h', 'Object_Manager.h', 'Obstack.h', 'OS.h', 'OS_Dirent.h', 'OS_Errno.h', 'OS_Log_Msg_Attributes.h', 'OS_Memory.h', 'OS_String.h', 'OS_Thread_Adapter.h', 'OS_TLI.h', 'PI_Malloc.h', 'POSIX_Asynch_IO.h', 'POSIX_Proactor.h', 'Pair.h', 'Pair_T.h', 'Parse_Node.h', 'Pipe.h', 'Priority_Reactor.h', 'Proactor.h', 'Proactor_Impl.h', 'Process.h', 'Process_Manager.h', 'Profile_Timer.h', 'RB_Tree.h', 'Reactor.h', 'Reactor_Impl.h', 'Read_Buffer.h', 'Registry.h', 'Registry_Name_Space.h', 'Remote_Name_Space.h', 'Remote_Tokens.h', 'Sched_Params.h', 'Select_Reactor.h', 'Select_Reactor_Base.h', 'Select_Reactor_T.h', 'Service_Config.h', 'Service_Manager.h', 'Service_Object.h', 'Service_Repository.h', 'Service_Types.h', 'Shared_Memory.h', 'Shared_Memory_MM.h', 'Shared_Memory_SV.h', 'Shared_Object.h', 'Signal.h', 'Singleton.h', 'SOCK.h', 'SOCK_Acceptor.h', 'SOCK_CODgram.h', 'SOCK_Connector.h', 'SOCK_Dgram.h', 'SOCK_Dgram_Bcast.h', 'SOCK_Dgram_Mcast.h', 'SOCK_IO.h', 'SOCK_Stream.h', 'Sock_Connect.h', 'SPIPE.h', 'SPIPE_Acceptor.h', 'SPIPE_Addr.h', 'SPIPE_Connector.h', 'SPIPE_Stream.h', 'SString.h', 'Stats.h', 'Strategies.h', 'Strategies_T.h', 'Stream.h', 'streams.h', 'Stream_Modules.h', 'Svc_Conf.h', 'Svc_Conf_Tokens.h', 'Svc_Handler.h', 'SV_Message.h', 'SV_Message_Queue.h', 'SV_Semaphore_Complex.h', 'SV_Semaphore_Simple.h', 'SV_Shared_Memory.h', 'Synch.h', 'Process_Semaphore.h', 'Process_Mutex.h', 'RW_Process_Mutex.h', 'File_Lock.h', 'Synch_Options.h', 'Synch_T.h', 'System_Time.h', 'Task.h', 'Task_T.h', 'Thread.h', 'Thread_Adapter.h', 'Thread_Control.h', 'Thread_Exit.h', 'Thread_Manager.h', 'Timeprobe.h', 'Timeprobe_T.h', 'Timer_Hash.h', 'Timer_Hash_T.h', 'Timer_Heap.h', 'Timer_Heap_T.h', 'Timer_List.h', 'Timer_List_T.h', 'Timer_Queue.h', 'Timer_Queue_Adapters.h', 'Timer_Queue_T.h', 'Timer_Wheel.h', 'Timer_Wheel_T.h', 'Time_Request_Reply.h', 'Time_Value.h', 'TkReactor.h', 'TLI.h', 'TLI_Acceptor.h', 'TLI_Connector.h', 'TLI_Stream.h', 'Token.h', 'Token_Collection.h', 'Token_Invariants.h', 'Token_Manager.h', 'Token_Request_Reply.h', 'TP_Reactor.h', 'Trace.h', 'TTY_IO.h', 'Typed_SV_Message.h', 'Typed_SV_Message_Queue.h', 'UNIX_Addr.h', 'UPIPE_Acceptor.h', 'UPIPE_Addr.h', 'UPIPE_Connector.h', 'UPIPE_Stream.h', 'Version.h', 'WFMO_Reactor.h', 'WIN32_Asynch_IO.h', 'WIN32_Proactor.h', 'XtReactor.h' } source type(cpp) "Log_Msg.cpp" source type(cpp) "ACE.cpp" source type(cpp) "Activation_Queue.cpp" source type(cpp) "Active_Map_Manager.cpp" source type(cpp) "Addr.cpp" source type(cpp) "Arg_Shifter.cpp" source type(cpp) "ARGV.cpp" source type(cpp) "Asynch_IO.cpp" source type(cpp) "Asynch_IO_Impl.cpp" source type(cpp) "Base_Thread_Adapter.cpp" source type(cpp) "Based_Pointer_Repository.cpp" source type(cpp) "Basic_Stats.cpp" source type(cpp) "Basic_Types.cpp" source type(cpp) "Capabilities.cpp" source type(cpp) "CDR_Base.cpp" source type(cpp) "CDR_Stream.cpp" source type(cpp) "Containers.cpp" source type(cpp) "CORBA_Handler.cpp" source type(cpp) "CORBA_Ref.cpp" source type(cpp) "Date_Time.cpp" source type(cpp) "DEV.cpp" source type(cpp) "DEV_Addr.cpp" source type(cpp) "DEV_Connector.cpp" source type(cpp) "DEV_IO.cpp" source type(cpp) "Dirent.cpp" source type(cpp) "DLL.cpp" source type(cpp) "Dump.cpp" source type(cpp) "Dynamic.cpp" source type(cpp) "Dynamic_Service.cpp" source type(cpp) "Event_Handler.cpp" source type(cpp) "FIFO.cpp" source type(cpp) "FIFO_Recv.cpp" source type(cpp) "FIFO_Recv_Msg.cpp" source type(cpp) "FIFO_Send.cpp" source type(cpp) "FIFO_Send_Msg.cpp" source type(cpp) "FILE.cpp" source type(cpp) "FILE_Addr.cpp" source type(cpp) "FILE_Connector.cpp" source type(cpp) "FILE_IO.cpp" source type(cpp) "Filecache.cpp" source type(cpp) "Flag_Manip.cpp" source type(cpp) "Functor.cpp" source type(cpp) "Future.cpp" source type(cpp) "Get_Opt.cpp" source type(cpp) "Handle_Ops.cpp" source type(cpp) "Handle_Set.cpp" source type(cpp) "Hash_Map_Manager.cpp" source type(cpp) "High_Res_Timer.cpp" source type(cpp) "INET_Addr.cpp" source type(cpp) "Init_ACE.cpp" source type(cpp) "IO_Cntl_Msg.cpp" source type(cpp) "IO_SAP.cpp" source type(cpp) "IOStream.cpp" source type(cpp) "IPC_SAP.cpp" source type(cpp) "Lib_Find.cpp" source type(cpp) "Local_Name_Space.cpp" source type(cpp) "Local_Tokens.cpp" source type(cpp) "Log_Msg_Backend.cpp" source type(cpp) "Log_Msg_IPC.cpp" source type(cpp) "Log_Record.cpp" source type(cpp) "LSOCK.cpp" source type(cpp) "LSOCK_Acceptor.cpp" source type(cpp) "LSOCK_CODgram.cpp" source type(cpp) "LSOCK_Connector.cpp" source type(cpp) "LSOCK_Dgram.cpp" source type(cpp) "LSOCK_Stream.cpp" source type(cpp) "Malloc.cpp" source type(cpp) "Malloc_Allocator.cpp" source type(cpp) "Map.cpp" source type(cpp) "Mem_Map.cpp" source type(cpp) "Memory_Pool.cpp" source type(cpp) "Message_Block.cpp" source type(cpp) "Message_Queue.cpp" source type(cpp) "Method_Request.cpp" source type(cpp) "Msg_WFMO_Reactor.cpp" source type(cpp) "Name_Proxy.cpp" source type(cpp) "Name_Request_Reply.cpp" source type(cpp) "Name_Space.cpp" source type(cpp) "Naming_Context.cpp" source type(cpp) "NT_Service.cpp" source type(cpp) "Object_Manager.cpp" source type(cpp) "Obstack.cpp" source type(cpp) "OS.cpp" source type(cpp) "OS_Dirent.cpp" source type(cpp) "OS_Errno.cpp" source type(cpp) "OS_Log_Msg_Attributes.cpp" source type(cpp) "OS_Memory.cpp" source type(cpp) "OS_String.cpp" source type(cpp) "OS_Thread_Adapter.cpp" source type(cpp) "OS_TLI.cpp" source type(cpp) "PI_Malloc.cpp" source type(cpp) "Pair.cpp" source type(cpp) "Parse_Node.cpp" source type(cpp) "Pipe.cpp" source type(cpp) "Priority_Reactor.cpp" source type(cpp) "Proactor.cpp" source type(cpp) "Process.cpp" source type(cpp) "Process_Manager.cpp" source type(cpp) "Profile_Timer.cpp" source type(cpp) "RB_Tree.cpp" source type(cpp) "Reactor.cpp" source type(cpp) "Read_Buffer.cpp" source type(cpp) "Registry.cpp" source type(cpp) "Registry_Name_Space.cpp" source type(cpp) "Remote_Name_Space.cpp" source type(cpp) "Remote_Tokens.cpp" source type(cpp) "Sched_Params.cpp" source type(cpp) "Select_Reactor.cpp" source type(cpp) "Select_Reactor_Base.cpp" source type(cpp) "Service_Config.cpp" source type(cpp) "Service_Manager.cpp" source type(cpp) "Service_Object.cpp" source type(cpp) "Service_Repository.cpp" source type(cpp) "Service_Types.cpp" source type(cpp) "Shared_Memory.cpp" source type(cpp) "Shared_Memory_MM.cpp" source type(cpp) "Shared_Memory_SV.cpp" source type(cpp) "Shared_Object.cpp" source type(cpp) "Signal.cpp" source type(cpp) "SOCK.cpp" source type(cpp) "SOCK_Acceptor.cpp" source type(cpp) "SOCK_CODgram.cpp" source type(cpp) "SOCK_Connector.cpp" source type(cpp) "SOCK_Dgram.cpp" source type(cpp) "SOCK_Dgram_Bcast.cpp" source type(cpp) "SOCK_Dgram_Mcast.cpp" source type(cpp) "SOCK_IO.cpp" source type(cpp) "SOCK_Stream.cpp" source type(cpp) "Sock_Connect.cpp" source type(cpp) "SPIPE.cpp" source type(cpp) "SPIPE_Acceptor.cpp" source type(cpp) "SPIPE_Addr.cpp" source type(cpp) "SPIPE_Connector.cpp" source type(cpp) "SPIPE_Stream.cpp" source type(cpp) "SString.cpp" source type(cpp) "Stats.cpp" source type(cpp) "Strategies.cpp" source type(cpp) "SV_Message.cpp" source type(cpp) "SV_Message_Queue.cpp" source type(cpp) "SV_Semaphore_Complex.cpp" source type(cpp) "SV_Semaphore_Simple.cpp" source type(cpp) "SV_Shared_Memory.cpp" source type(cpp) "Svc_Conf_l.cpp" source type(cpp) "Svc_Conf_y.cpp" source type(cpp) "Synch.cpp" source type(cpp) "Process_Semaphore.cpp" source type(cpp) "Process_Mutex.cpp" source type(cpp) "RW_Process_Mutex.cpp" source type(cpp) "File_Lock.cpp" source type(cpp) "Synch_Options.cpp" source type(cpp) "System_Time.cpp" source type(cpp) "Task.cpp" source type(cpp) "Thread.cpp" source type(cpp) "Thread_Adapter.cpp" source type(cpp) "Thread_Control.cpp" source type(cpp) "Thread_Exit.cpp" source type(cpp) "Thread_Manager.cpp" source type(cpp) "Time_Request_Reply.cpp" source type(cpp) "Timeprobe.cpp" source type(cpp) "Timer_Hash.cpp" source type(cpp) "Timer_Heap.cpp" source type(cpp) "Timer_List.cpp" source type(cpp) "Timer_Queue.cpp" source type(cpp) "Timer_Queue_Adapters.cpp" source type(cpp) "Timer_Wheel.cpp" source type(cpp) "TLI.cpp" source type(cpp) "TLI_Acceptor.cpp" source type(cpp) "TLI_Connector.cpp" source type(cpp) "TLI_Stream.cpp" source type(cpp) "Token.cpp" source type(cpp) "Token_Collection.cpp" source type(cpp) "Token_Invariants.cpp" source type(cpp) "Token_Manager.cpp" source type(cpp) "Token_Request_Reply.cpp" source type(cpp) "TP_Reactor.cpp" source type(cpp) "Trace.cpp" source type(cpp) "TTY_IO.cpp" source type(cpp) "Typed_SV_Message.cpp" source type(cpp) "Typed_SV_Message_Queue.cpp" source type(cpp) "UNIX_Addr.cpp" source type(cpp) "UPIPE_Acceptor.cpp" source type(cpp) "UPIPE_Connector.cpp" source type(cpp) "UPIPE_Stream.cpp" source type(cpp) "WFMO_Reactor.cpp" source type(cpp) "WIN32_Asynch_IO.cpp" source type(cpp) "WIN32_Proactor.cpp" source type(cpp) "XtReactor.cpp" // Libraries needed during linking if $__TOS_WIN__ { source type (lib) "advapi32.lib" source type (lib) "user32.lib" source type (lib) "ws2_32.lib" source type (lib) "wsock32.lib" source type (lib) "mswsock.lib" } if $__TOS_AIX__ { source type (lib) "libtli_r.a" source type (lib) "libpthreads.a" source type (lib) "libc_r.a" source type (lib) "libdl.a" // Imports source type (imp) "pse.exp" } }}
\ No newline at end of file diff --git a/ace/ws2tcpip.h b/ace/ws2tcpip.h deleted file mode 100644 index 5640f2e5989..00000000000 --- a/ace/ws2tcpip.h +++ /dev/null @@ -1,90 +0,0 @@ -/* -** $Id$ -** -** WS2TCPIP.H - WinSock2 Extension for TCP/IP protocols -** -** This file contains TCP/IP specific information for use -** by WinSock2 compatible applications. -** -** To provide the backward compatibility, all the TCP/IP -** specific definitions that were included in the WINSOCK.H -** file are now included in WINSOCK2.H file. WS2TCPIP.H -** file includes only the definitions introduced in the -** "WinSock 2 Protocol-Specific Annex" document. -** -** Rev 0.3 Nov 13, 1995 -*/ - -#ifndef _WS2TCPIP_H_ -#define _WS2TCPIP_H_ -#include "ace/pre.h" - -/* Structure to keep interface specific information */ - -typedef struct _INTERFACE_INFO -{ - u_long iiFlags; /* Interface flags */ - struct sockaddr iiAddress; /* Interface address */ - struct sockaddr iiBroadcastAddress; /* Broadcast address */ - struct sockaddr iiNetmask; /* Network mask */ -} INTERFACE_INFO, FAR * LPINTERFACE_INFO; - -/* Possible flags for the iiFlags - bitmask */ - -#define IFF_UP 0x00000001 /* Interface is up */ -#define IFF_BROADCAST 0x00000002 /* Broadcast is supported */ -#define IFF_LOOPBACK 0x00000004 /* this is loopback interface */ -#define IFF_POINTTOPOINT 0x00000008 /*this is point-to-point -interface*/ -#define IFF_MULTICAST 0x00000010 /* multicast is supported */ - -/* Argument structure for IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP */ - -struct ip_mreq { - struct in_addr imr_multiaddr; /* IP multicast address of group */ - struct in_addr imr_interface; /* local IP address of interface */ -}; - -/* TCP/IP specific Ioctl codes */ - -#define SIO_GET_INTERFACE_LIST _IOR('t', 127, u_long) // <TBD> - -/* Option to use with [gs]etsockopt at the IPPROTO_IP level */ - -#define IP_OPTIONS 1 /* set/get IP options */ -#define IP_HDRINCL 2 /* header is included with data */ -#define IP_TOS 3 /* IP type of service and preced*/ -#define IP_TTL 4 /* IP time to live */ -#define IP_MULTICAST_IF 9 /* set/get IP multicast i/f */ -#define IP_MULTICAST_TTL 10 /* set/get IP multicast ttl */ -#define IP_MULTICAST_LOOP 11 /*set/get IP multicast loopback */ -#define IP_ADD_MEMBERSHIP 12 /* add an IP group membership */ -#define IP_DROP_MEMBERSHIP 13/* drop an IP group membership */ - - -/* Option to use with [gs]etsockopt at the IPPROTO_UDP level */ - -#define UDP_NOCHECKSUM 1 - -/* Option to use with [gs]etsockopt at the IPPROTO_TCP level */ - -#define TCP_EXPEDITED_1122 0x0002 - - -/* IPv6 definitions */ - -struct in_addr6 { - u_char s6_addr[16]; /* IPv6 address */ -}; - -struct sockaddr_in6 { - short sin6_family; /* AF_INET6 */ - u_short sin6_port; /* Transport level port numb -er */ - u_long sin6_flowinfo; /* IPv6 flow information */ - struct in_addr6 sin6_addr; /* IPv6 address */ -}; - - -#include "ace/post.h" -#endif /* _WS2TCPIP_H_ */ |