diff --git a/ACE/ace/RAW_Socket.cpp b/ACE/ace/RAW_Socket.cpp deleted file mode 100644 index 30f9fee6e144f..0000000000000 --- a/ACE/ace/RAW_Socket.cpp +++ /dev/null @@ -1,419 +0,0 @@ -#include "ace/RAW_Socket.h" - -#include "ace/ACE.h" -#include "ace/Log_Category.h" -#if defined (ACE_HAS_ALLOC_HOOKS) -# include "ace/Malloc_Base.h" -#endif /* ACE_HAS_ALLOC_HOOKS */ - -// Included so users have access to ACE_RECVPKTINFO and ACE_RECVPKTINFO6 . -#include "ace/OS_NS_sys_socket.h" - -#if defined (ACE_HAS_IPV6) && defined (ACE_WIN32) -#include /**/ -#endif - - -#if !defined (__ACE_INLINE__) -# include "ace/RAW_Socket.inl" -#endif /* __ACE_INLINE__ */ - -ACE_BEGIN_VERSIONED_NAMESPACE_DECL - -ACE_ALLOC_HOOK_DEFINE (ACE_RAW_SOCKET) - -#if defined (ACE_HAS_4_4BSD_SENDMSG_RECVMSG) || defined ACE_WIN32 -#define ACE_USE_MSG_CONTROL - union control_buffer { - cmsghdr control_msg_header; -#if defined (IP_RECVDSTADDR) - u_char padding[ACE_CMSG_SPACE (sizeof (in_addr))]; -#elif defined (IP_PKTINFO) - u_char padding[ACE_CMSG_SPACE (sizeof (in_pktinfo))]; -#endif -#if defined (ACE_HAS_IPV6) - u_char padding6[ACE_CMSG_SPACE (sizeof (in6_pktinfo))]; -#endif - }; -#endif - -#define ACE_SEND_EXCEPTION_RETURN() do {\ - if (this->get_handle () == ACE_INVALID_HANDLE)\ - return -1; \ - if(timeout && ACE::handle_write_ready (this->get_handle (), timeout) != 1)\ - return -1; \ -}while(0) - -#define ACE_RECV_EXCEPTION_RETURN() do {\ - if (this->get_handle () == ACE_INVALID_HANDLE)\ - return -1; \ - if(this->is_send_only())\ - return -1; \ - if(timeout && ACE::handle_read_ready (this->get_handle (), timeout) != 1)\ - return -1; \ -}while(0) - - -void -ACE_RAW_SOCKET::dump () const -{ - ACE_TRACE ("ACE_RAW_SOCKET::dump"); -} - -/// @brief default constructor -ACE_RAW_SOCKET::ACE_RAW_SOCKET () : protocol_(IPPROTO_UDP) -{ - ACE_TRACE ("ACE_RAW_SOCKET::ACE_RAW_SOCKET"); -} - -/// @brief constructor with parameters -ACE_RAW_SOCKET::ACE_RAW_SOCKET (ACE_INET_Addr const & local, - int protocol) : protocol_(protocol) -{ - ACE_TRACE ("ACE_RAW_SOCKET::ACE_RAW_SOCKET"); - - if (this->open (local, protocol) == -1) - ACELIB_ERROR ((LM_ERROR, - ACE_TEXT ("%p\n"), - ACE_TEXT ("ACE_RAW_SOCKET"))); -} - -static inline ssize_t using_common_recv(const ACE_RAW_SOCKET& raw, void *buf, size_t n, ACE_INET_Addr &addr, int flags) -{ - struct sockaddr *saddr = static_cast(addr.get_addr ()); - int addr_len = addr.get_size (); - - ssize_t const status = ACE_OS::recvfrom (raw.get_handle (), - static_cast(buf), - n, - flags, - saddr, - &addr_len); - - addr.set_size (addr_len); - addr.set_type (saddr->sa_family); - return status; -} - -static inline void fillMsgHdr(msghdr& recv_msg, const ACE_INET_Addr &addr, void* pcbuf, int cbuf_size) -{ - #if defined (ACE_HAS_SOCKADDR_MSG_NAME) - recv_msg.msg_name = static_cast (addr.get_addr ()); - #else - recv_msg.msg_name = static_cast(addr.get_addr ()); - #endif /* ACE_HAS_SOCKADDR_MSG_NAME */ - - recv_msg.msg_namelen = addr.get_size (); - - #ifdef ACE_USE_MSG_CONTROL - recv_msg.msg_control = pcbuf; - recv_msg.msg_controllen = cbuf_size; - #elif !defined ACE_LACKS_SENDMSG - recv_msg.msg_accrights = 0; - recv_msg.msg_accrightslen = 0; - #endif -} - -static inline void getToAddrFromMsgHdr(msghdr& recv_msg, ACE_INET_Addr& to_addr) -{ - #if defined(ACE_USE_MSG_CONTROL) - if (to_addr.get_type() == AF_INET) - { - #if defined (IP_RECVDSTADDR) || defined (IP_PKTINFO) - for (cmsghdr *ptr = ACE_CMSG_FIRSTHDR (&recv_msg); ptr; ptr = ACE_CMSG_NXTHDR (&recv_msg, ptr)) - { - #if defined (IP_RECVDSTADDR) - if (ptr->cmsg_level == IPPROTO_IP && ptr->cmsg_type == IP_RECVDSTADDR) - { - to_addr.set_address (reinterpret_cast(ACE_CMSG_DATA (ptr)), - sizeof (struct in_addr), - 0); - break; - } - #endif - #if defined(IP_PKTINFO) - if (ptr->cmsg_level == IPPROTO_IP && ptr->cmsg_type == IP_PKTINFO) - { - to_addr.set_address (reinterpret_cast(&((reinterpret_cast(ACE_CMSG_DATA (ptr)))->ipi_addr)), - sizeof (struct in_addr), - 0); - break; - } - #endif - } - #endif - } - #if defined (ACE_HAS_IPV6) && defined (IPV6_PKTINFO) - else if (to_addr.get_type() == AF_INET6) - { - for (cmsghdr *ptr = ACE_CMSG_FIRSTHDR (&recv_msg); ptr; ptr = ACE_CMSG_NXTHDR (&recv_msg, ptr)) - { - if (ptr->cmsg_level == IPPROTO_IPV6 && ptr->cmsg_type == IPV6_PKTINFO) - { - to_addr.set_address (reinterpret_cast(&((reinterpret_cast((ACE_CMSG_DATA(ptr))))->ipi6_addr)), - sizeof (struct in6_addr), - 0); - break; - } - } - } - #endif - #else - ACE_UNUSED_ARG(recv_msg); - ACE_UNUSED_ARG (to_addr); - #endif -} - -ssize_t -ACE_RAW_SOCKET::recv (void *buf, - size_t n, - ACE_INET_Addr &addr, - int flags, - const ACE_Time_Value *timeout, - ACE_INET_Addr *to_addr) const -{ - ACE_TRACE ("ACE_RAW_SOCKET::recv"); - - ACE_RECV_EXCEPTION_RETURN(); - - if(to_addr == nullptr) - { - return using_common_recv(*this, buf, n, addr, flags); - } - else - { - this->get_local_addr (*to_addr); - if(!to_addr->is_any()) - { - return using_common_recv(*this, buf, n, addr, flags); - } - } - - struct iovec iov; - iov.iov_base = static_cast(buf); - iov.iov_len = static_cast(n); - - msghdr recv_msg = {}; - recv_msg.msg_iov = &iov; - recv_msg.msg_iovlen = 1; - -#ifdef ACE_USE_MSG_CONTROL - union control_buffer cbuf; - if(to_addr != nullptr) - { - fillMsgHdr(recv_msg, addr, &cbuf, sizeof(cbuf)); - } - else - { - fillMsgHdr(recv_msg, addr, nullptr, 0); - } -#else - fillMsgHdr(recv_msg, addr, nullptr, 0); -#endif - - ssize_t const status = ACE_OS::recvmsg (this->get_handle (), - &recv_msg, - flags); - - addr.set_size (recv_msg.msg_namelen); - addr.set_type ((static_cast(addr.get_addr()))->sin_family); - -#ifdef ACE_USE_MSG_CONTROL - if(to_addr != nullptr) - getToAddrFromMsgHdr(recv_msg, *to_addr); -#endif - - return status; -} - - -ssize_t -ACE_RAW_SOCKET::send (const void *buf, - size_t n, - const ACE_INET_Addr &addr, - int flags, - const ACE_Time_Value *timeout) const -{ - ACE_TRACE ("ACE_RAW_SOCKET::send"); - - // Check the status of the current socket. - ACE_SEND_EXCEPTION_RETURN(); - - struct sockaddr *saddr = static_cast(addr.get_addr ()); - int const len = addr.get_size (); - return ACE_OS::sendto (this->get_handle (), - static_cast(buf), - n, - flags, - saddr, - len); -} - -#if defined (ACE_HAS_MSG) -ssize_t -ACE_RAW_SOCKET::send (const iovec iov[], - int n, - const ACE_INET_Addr &addr, - int flags, - const ACE_Time_Value *timeout) const -{ - ACE_TRACE ("ACE_RAW_SOCKET::send"); - - // Check the status of the current socket. - ACE_SEND_EXCEPTION_RETURN(); - - msghdr send_msg = {}; - - send_msg.msg_iov = const_cast(iov); - send_msg.msg_iovlen = n; - - #if defined (ACE_HAS_SOCKADDR_MSG_NAME) - send_msg.msg_name = static_cast(addr.get_addr()); - #else - send_msg.msg_name = static_cast(addr.get_addr ()); - #endif /* ACE_HAS_SOCKADDR_MSG_NAME */ - send_msg.msg_namelen = addr.get_size (); - - #if defined (ACE_HAS_4_4BSD_SENDMSG_RECVMSG) - send_msg.msg_control = 0; - send_msg.msg_controllen = 0; - send_msg.msg_flags = 0; - #elif !defined ACE_LACKS_SENDMSG - send_msg.msg_accrights = 0; - send_msg.msg_accrightslen = 0; - #endif /* ACE_HAS_4_4BSD_SENDMSG_RECVMSG */ - - #ifdef ACE_WIN32 - send_msg.msg_control = 0; - send_msg.msg_controllen = 0; - #endif - - return ACE_OS::sendmsg (this->get_handle (), &send_msg, flags); -} - - -ssize_t -ACE_RAW_SOCKET::recv (iovec iov[], - int n, - ACE_INET_Addr &addr, - int flags, - const ACE_Time_Value *timeout, - ACE_INET_Addr *to_addr) const -{ - ACE_TRACE ("ACE_RAW_SOCKET::recv"); - - ACE_RECV_EXCEPTION_RETURN(); - - - msghdr recv_msg = {}; - recv_msg.msg_iov = static_cast(iov); - recv_msg.msg_iovlen = n; - - /*default*/ - fillMsgHdr(recv_msg, addr, nullptr, 0); - -#ifdef ACE_USE_MSG_CONTROL - union control_buffer cbuf; - if(to_addr != nullptr) - { - this->get_local_addr(*to_addr); - - fillMsgHdr(recv_msg, addr, &cbuf, sizeof(cbuf)); - } -#endif - - ssize_t const status = ACE_OS::recvmsg (this->get_handle (), - &recv_msg, - flags); - - addr.set_size (recv_msg.msg_namelen); - addr.set_type ((static_cast(addr.get_addr()))->sin_family); - -#ifdef ACE_USE_MSG_CONTROL - if(to_addr != nullptr) - getToAddrFromMsgHdr(recv_msg, *to_addr); -#endif - - return status; -} - -#else -// not supported will fail immediately -ssize_t -ACE_RAW_SOCKET::send (const iovec iov[], - int n, - const ACE_INET_Addr &addr, - int flags, - const ACE_Time_Value *timeout) const -{ - ACE_TRACE ("ACE_RAW_SOCKET::send iovec"); - - - // immediately fail when unsupported - return -1; -} - -ssize_t -ACE_RAW_SOCKET::recv (iovec iov[], - int n, - ACE_INET_Addr &addr, - int flags, - const ACE_Time_Value *timeout, - ACE_INET_Addr *to_addr) const -{ - ACE_TRACE ("ACE_RAW_SOCKET::recv iovec"); - - - // immediately fail when unsupported - return -1; -} - -#endif - -int -ACE_RAW_SOCKET::open (ACE_INET_Addr const & local, int protocol) -{ - ACE_TRACE ("ACE_RAW_SOCKET::open"); - - if (this->get_handle () != ACE_INVALID_HANDLE) - return -1; - - int const protocol_family = local.get_type (); - /// reuse_addr Maybe meaningless for RAW Socket - int const reuse_addr = 1; - - if(ACE_SOCK::open (SOCK_RAW, protocol_family, protocol, reuse_addr) == -1) - return -1; - - if(ACE_OS::bind (this->get_handle (), static_cast(local.get_addr()), local.get_addr_size()) == -1) - return -1; - - - this->protocol_ = protocol; - - ACE_INET_Addr bindAddr; - this->get_local_addr(bindAddr); - -#if defined (ACE_HAS_IPV6) && defined (IPV6_PKTINFO) && defined(IPV6_RECVPKTINFO) - if (bindAddr.get_type() == PF_INET6 && bindAddr.is_any()) - { - int yes = 1; - this->set_option(IPPROTO_IPV6, ACE_RECVPKTINFO6, &yes, sizeof(yes)); - } -#endif - -#if defined (IP_RECVDSTADDR) || defined (IP_PKTINFO) - if (bindAddr.get_type() == PF_INET && bindAddr.is_any()) - { - int yes = 1; - this->set_option(IPPROTO_IP, ACE_RECVPKTINFO, &yes, sizeof(yes)); - } -#endif - - - return 0; -} - - -ACE_END_VERSIONED_NAMESPACE_DECL - diff --git a/ACE/ace/RAW_Socket.h b/ACE/ace/RAW_Socket.h deleted file mode 100644 index 6575f63b59049..0000000000000 --- a/ACE/ace/RAW_Socket.h +++ /dev/null @@ -1,161 +0,0 @@ -// -*- C++ -*- - -//============================================================================= -/** - * @file RAW_Socket.h - * - * @author Smith.Achang - */ -//============================================================================= - -#ifndef ACE_RAW_SOCKET_H -#define ACE_RAW_SOCKET_H - -#include /**/ "ace/pre.h" - -#include /**/ "ace/ACE_export.h" - -#if !defined (ACE_LACKS_PRAGMA_ONCE) -# pragma once -#endif /* ACE_LACKS_PRAGMA_ONCE */ - - -#include "ace/SOCK.h" -#include "ace/Copy_Disabled.h" - -#include "ace/Time_Value.h" -#include "ace/os_include/netinet/os_in.h" -#include "ace/INET_Addr.h" - -ACE_BEGIN_VERSIONED_NAMESPACE_DECL - -/** - * @class ACE_RAW_Socket - * - * @brief An RAW Socket implemention class. - * - * An RAW Socket can be used for some user-space network protocol stack. - * - Setting the protocol parameter to be IPPROTO_UDP will filter all UDP protocol packages with the destination is its bound address. - * It can reduce the total num of socket needed with only port difference. - * - * - Setting the protocol parameter to be IPPROTO_SCTP will filter all SCTP protocol packages with the destination is its bound address. - * It can form the basis of a user-space SCTP protocol stack in more general way. - * - * - Setting the protocol parameter to be IPPROTO_RAW will make it as a send only socket for any customized datagram formed from the IP header to be sent. - * Notice the source address can be different from its bound address if provided in the customized package or keep them default to zero. - * Notice the IPPROTO_RAW RAW socket does not support fragment function when the passed package exceeds the MTU, so it need a upper layer fragment before called - * - * @note If you really want to receive all IP packets, use a packet(7) socket with the ETH_P_IP protocol. - * For "Single Responsibility Principle" the behavior has notable difference, so the feature is not implemented here. - */ -class ACE_Export ACE_RAW_SOCKET : public ACE_SOCK, private ACE_Copy_Disabled -{ -public: - /// Default constructor. - ACE_RAW_SOCKET (); - - /// Constructor that bind a local address and fiter UDP protocol. - /// @param local local IP address to bind - /// @param protocol IPPROTO_UDP as default value because often used as a user-space UDP stack - ACE_RAW_SOCKET (ACE_INET_Addr const & local, int protocol = IPPROTO_UDP); - - - /** - * @name Data transfer routines. - * - * Data transfer routines. - */ - //@{ - - /** - * Wait up to @a timeout amount of time to send a datagram to - * @a buf. The ACE_Time_Value indicates how long to blocking - * trying to receive. If @a timeout == NULL, the caller will block - * until action is possible, else will wait until the relative time - * specified in *@a timeout elapses). If times out a -1 is - * returned with @c errno == ETIME. If it succeeds the number of - * bytes sent is returned. - */ -ssize_t send (const void *buf, - size_t n, - const ACE_INET_Addr &addr, - int flags = 0, - const ACE_Time_Value *timeout = nullptr) const; - - - /** - * Wait up to @a timeout amount of time to receive a datagram into - * @a buf. The ACE_Time_Value indicates how long to blocking - * trying to receive. If @a timeout == NULL, the caller will block - * until action is possible, else will wait until the relative time - * specified in *@a timeout elapses). If times out a -1 is - * returned with @c errno == ETIME. If it succeeds the number of - * bytes received is returned. - * The IP destination address will be placed in @a *to_addr if it is not null - */ - ssize_t recv (void *buf, - size_t n, - ACE_INET_Addr &addr, - int flags = 0, - const ACE_Time_Value *timeout = nullptr, - ACE_INET_Addr *to_addr = nullptr) const; - -/** - * Send an of size @a n to the datagram socket (uses) - * The IP destination address will be placed in @a *to_addr if it is not null - * @return if iovec call is unsupported by platforms, the method will return -1 immediately -*/ -ssize_t send (const iovec iov[], - int n, - const ACE_INET_Addr &addr, - int flags = 0, - const ACE_Time_Value *timeout = nullptr) const; -/** - * Recv an of size @a n to the datagram socket (uses ). - * The IP destination address will be placed in @a *to_addr if it is not null. - * @return if iovec call is unsupported by platforms, the method will return -1 immediately - */ -ssize_t recv (iovec iov[], - int n, - ACE_INET_Addr &addr, - int flags = 0, - const ACE_Time_Value *timeout = nullptr, - ACE_INET_Addr *to_addr = nullptr) const; - - //@} - - /** - * Wrapper around the BSD-style @c socket system call (no QoS). - * @param local local IP address to bind - * @param protocol filter the protocol based on IP network layer. Using IPPROTO_UDP as default value for often used as a user-space UDP stack - * - * @attention can be re-opened after closed - */ - - int open (ACE_INET_Addr const & local, int protocol = IPPROTO_UDP); - - /// Dump the state of object. - void dump () const; - - /// Return @c true if the protocol is IPPROTO_RAW. - bool is_send_only () const; - - /// Return the protocol field value. - int protocol () const; - - /// Declare the dynamic allocation hooks. - ACE_ALLOC_HOOK_DECLARE; - -private: - int protocol_; -}; - -ACE_END_VERSIONED_NAMESPACE_DECL - -#if defined (__ACE_INLINE__) -#include "ace/RAW_Socket.inl" -#endif /* __ACE_INLINE__ */ - -#include /**/ "ace/post.h" - -#endif /* ACE_RAW_SOCKET_H */ diff --git a/ACE/ace/RAW_Socket.inl b/ACE/ace/RAW_Socket.inl deleted file mode 100644 index 13963aed96a2b..0000000000000 --- a/ACE/ace/RAW_Socket.inl +++ /dev/null @@ -1,22 +0,0 @@ -#include "ace/ACE.h" -#include "ace/Global_Macros.h" -#include "ace/RAW_Socket.h" - -ACE_BEGIN_VERSIONED_NAMESPACE_DECL - - -ACE_INLINE bool -ACE_RAW_SOCKET::is_send_only () const -{ - return this->protocol_ == IPPROTO_RAW; -} - -ACE_INLINE int -ACE_RAW_SOCKET:: protocol () const -{ - return this->protocol_; -} - - -ACE_END_VERSIONED_NAMESPACE_DECL - diff --git a/ACE/ace/ace.mpc b/ACE/ace/ace.mpc deleted file mode 100644 index d536e4b322e3f..0000000000000 --- a/ACE/ace/ace.mpc +++ /dev/null @@ -1,521 +0,0 @@ -// -*- MPC -*- -project(ACE) : ace_output, acedefaults, install, other, codecs, token, svcconf, uuid, filecache, versioned_namespace, pkgconfig, support_ostream { - avoids = ace_for_tao - sharedname = ACE - dynamicflags += ACE_BUILD_DLL - - Source_Files(ACE_COMPONENTS) { - ACE.cpp - ACE_crc_ccitt.cpp - ACE_crc32.cpp - ace_wchar.cpp - Activation_Queue.cpp - Active_Map_Manager.cpp - Addr.cpp - Argv_Type_Converter.cpp - Assert.cpp - Asynch_IO.cpp - Asynch_IO_Impl.cpp - Asynch_Pseudo_Task.cpp - ATM_Acceptor.cpp - ATM_Addr.cpp - ATM_Connector.cpp - ATM_Params.cpp - ATM_QoS.cpp - ATM_Stream.cpp - Atomic_Op.cpp - Barrier.cpp - Base_Thread_Adapter.cpp - Based_Pointer_Repository.cpp - Basic_Stats.cpp - Basic_Types.cpp - Capabilities.cpp - CDR_Base.cpp - CDR_Stream.cpp - CDR_Size.cpp - Cleanup.cpp - Codeset_IBM1047.cpp - Codeset_Registry.cpp - Codeset_Registry_db.cpp - Condition_Attributes.cpp - Condition_Recursive_Thread_Mutex.cpp - Condition_Thread_Mutex.cpp - Configuration.cpp - Configuration_Import_Export.cpp - Connection_Recycling_Strategy.cpp - Containers.cpp - Copy_Disabled.cpp - Date_Time.cpp - DEV.cpp - DEV_Addr.cpp - DEV_Connector.cpp - DEV_IO.cpp - DLL_Manager.cpp - Dev_Poll_Reactor.cpp - Dirent.cpp - Dirent_Selector.cpp - Dump.cpp - Dynamic.cpp - Dynamic_Message_Strategy.cpp - Event_Base.cpp - Event_Handler.cpp - Event_Handler_Handle_Timeout_Upcall.cpp - FIFO.cpp - FIFO_Recv.cpp - FIFO_Recv_Msg.cpp - FIFO_Send.cpp - FIFO_Send_Msg.cpp - FILE.cpp - FILE_Addr.cpp - FILE_Connector.cpp - FILE_IO.cpp - File_Lock.cpp - Flag_Manip.cpp - Framework_Component.cpp - Functor.cpp - Functor_String.cpp - Get_Opt.cpp - Handle_Ops.cpp - Handle_Set.cpp - Hashable.cpp - High_Res_Timer.cpp - ICMP_Socket.cpp - INET_Addr.cpp - Init_ACE.cpp - IO_SAP.cpp - IO_Cntl_Msg.cpp - IOStream.cpp - IPC_SAP.cpp - Lib_Find.cpp - Local_Memory_Pool.cpp - Lock.cpp - Log_Category.cpp - Log_Msg.cpp - Log_Msg_Android_Logcat.cpp - Log_Msg_Backend.cpp - Log_Msg_Callback.cpp - Log_Msg_IPC.cpp - Log_Msg_NT_Event_Log.cpp - Log_Msg_UNIX_Syslog.cpp - Log_Record.cpp - Logging_Strategy.cpp - LSOCK.cpp - LSOCK_Acceptor.cpp - LSOCK_CODgram.cpp - LSOCK_Connector.cpp - LSOCK_Dgram.cpp - LSOCK_Stream.cpp - Malloc.cpp - Malloc_Allocator.cpp - MEM_Acceptor.cpp - MEM_Addr.cpp - MEM_Connector.cpp - MEM_IO.cpp - Mem_Map.cpp - MEM_SAP.cpp - MEM_Stream.cpp - Message_Block.cpp - Message_Queue.cpp - Message_Queue_NT.cpp - Message_Queue_Vx.cpp - Method_Request.cpp - MMAP_Memory_Pool.cpp - MQX_Filesystem.cpp - Msg_WFMO_Reactor.cpp - Monitor_Admin.cpp - Monitor_Admin_Manager.cpp - Monitor_Base.cpp - Monitor_Point_Registry.cpp - Monitor_Size.cpp - Monitor_Control_Types.cpp - Monitor_Control_Action.cpp - Monotonic_Time_Policy.cpp - Multihomed_INET_Addr.cpp - Mutex.cpp - Netlink_Addr.cpp - Notification_Strategy.cpp - Notification_Queue.cpp - Null_Mutex.cpp - Obchunk.cpp - Object_Manager.cpp - Object_Manager_Base.cpp - Obstack.cpp - OS_Errno.cpp - OS_Log_Msg_Attributes.cpp - OS_main.cpp - OS_NS_arpa_inet.cpp - OS_NS_ctype.cpp - OS_NS_devctl.cpp - OS_NS_dirent.cpp - OS_NS_dlfcn.cpp - OS_NS_errno.cpp - OS_NS_fcntl.cpp - OS_NS_math.cpp - OS_NS_netdb.cpp - OS_NS_poll.cpp - OS_NS_pwd.cpp - OS_NS_regex.cpp - OS_NS_signal.cpp - OS_NS_stdio.cpp - OS_NS_stdlib.cpp - OS_NS_string.cpp - OS_NS_strings.cpp - OS_NS_stropts.cpp - OS_NS_sys_mman.cpp - OS_NS_sys_msg.cpp - OS_NS_sys_resource.cpp - OS_NS_sys_select.cpp - OS_NS_sys_sendfile.cpp - OS_NS_sys_shm.cpp - OS_NS_sys_socket.cpp - OS_NS_sys_stat.cpp - OS_NS_sys_time.cpp - OS_NS_sys_uio.cpp - OS_NS_sys_utsname.cpp - OS_NS_sys_wait.cpp - OS_NS_Thread.cpp - OS_NS_time.cpp - OS_NS_unistd.cpp - OS_NS_wchar.cpp - OS_NS_wctype.cpp - OS_QoS.cpp - OS_Thread_Adapter.cpp - OS_TLI.cpp - Pagefile_Memory_Pool.cpp - Parse_Node.cpp - PI_Malloc.cpp - Ping_Socket.cpp - Pipe.cpp - POSIX_Asynch_IO.cpp - POSIX_CB_Proactor.cpp - POSIX_Proactor.cpp - Priority_Reactor.cpp - Proactor.cpp - Proactor_Impl.cpp - Process.cpp - Process_Manager.cpp - Process_Mutex.cpp - Process_Semaphore.cpp - Profile_Timer.cpp - RAW_Socket.cpp - Reactor.cpp - Reactor_Impl.cpp - Reactor_Notification_Strategy.cpp - Reactor_Timer_Interface.cpp - Read_Buffer.cpp - Recursive_Thread_Mutex.cpp - Recyclable.cpp - Registry.cpp - RW_Mutex.cpp - RW_Process_Mutex.cpp - RW_Thread_Mutex.cpp - Sample_History.cpp - Sbrk_Memory_Pool.cpp - Sched_Params.cpp - Select_Reactor_Base.cpp - Semaphore.cpp - Shared_Memory.cpp - Shared_Memory_MM.cpp - Shared_Memory_Pool.cpp - Shared_Memory_SV.cpp - Sig_Adapter.cpp - Sig_Handler.cpp - Signal.cpp - SOCK.cpp - SOCK_Acceptor.cpp - SOCK_CODgram.cpp - Sock_Connect.cpp - SOCK_Connector.cpp - SOCK_Dgram.cpp - SOCK_Dgram_Bcast.cpp - SOCK_Dgram_Mcast.cpp - SOCK_IO.cpp - SOCK_Netlink.cpp - SOCK_SEQPACK_Acceptor.cpp - SOCK_SEQPACK_Association.cpp - SOCK_SEQPACK_Connector.cpp - SOCK_Stream.cpp - SPIPE.cpp - SPIPE_Acceptor.cpp - SPIPE_Addr.cpp - SPIPE_Connector.cpp - SPIPE_Stream.cpp - SString.cpp - Stack_Trace.cpp - Stats.cpp - String_Base_Const.cpp - SV_Message.cpp - SV_Message_Queue.cpp - SV_Semaphore_Complex.cpp - SV_Semaphore_Simple.cpp - SV_Shared_Memory.cpp - Synch_Options.cpp - System_Time.cpp - Task.cpp - Thread.cpp - Thread_Adapter.cpp - Thread_Control.cpp - Thread_Exit.cpp - Thread_Hook.cpp - Thread_Manager.cpp - Thread_Mutex.cpp - Thread_Semaphore.cpp - Throughput_Stats.cpp - Time_Policy.cpp - Time_Value.cpp - Timeprobe.cpp - TLI.cpp - TLI_Acceptor.cpp - TLI_Connector.cpp - TLI_Stream.cpp - Token.cpp - TP_Reactor.cpp - Trace.cpp - TSS_Adapter.cpp - TTY_IO.cpp - UNIX_Addr.cpp - UPIPE_Acceptor.cpp - UPIPE_Connector.cpp - UPIPE_Stream.cpp - WFMO_Reactor.cpp - WIN32_Asynch_IO.cpp - WIN32_Proactor.cpp - XTI_ATM_Mcast.cpp - } - - Template_Files { - Abstract_Timer_Queue.cpp - Acceptor.cpp - Active_Map_Manager_T.cpp - ARGV.cpp - Arg_Shifter.cpp - Array_Base.cpp - Array_Map.cpp - Asynch_Acceptor.cpp - Asynch_Connector.cpp - Atomic_Op_T.cpp - Atomic_Op_GCC_T.cpp - Auto_Event.cpp - Auto_Functor.cpp - Auto_IncDec_T.cpp - Auto_Ptr.cpp - Based_Pointer_T.cpp - Bound_Ptr.cpp - Cache_Map_Manager_T.cpp - Cached_Connect_Strategy_T.cpp - Caching_Strategies_T.cpp - Caching_Utility_T.cpp - Cleanup_Strategies_T.cpp - Condition_T.cpp - Connector.cpp - Containers_T.cpp - Countdown_Time_T.cpp - Dump_T.cpp - Dynamic_Service.cpp - Env_Value_T.cpp - Event.cpp - Event_Handler_T.cpp - Framework_Component_T.cpp - Free_List.cpp - Functor_T.cpp - Future.cpp - Future_Set.cpp - Guard_T.cpp - Hash_Cache_Map_Manager_T.cpp - Hash_Map_Manager_T.cpp - Hash_Multi_Map_Manager_T.cpp - Hash_Map_With_Allocator_T.cpp - IOStream_T.cpp - Intrusive_Auto_Ptr.cpp - Intrusive_List.cpp - Intrusive_List_Node.cpp - LOCK_SOCK_Acceptor.cpp - Local_Name_Space_T.cpp - Lock_Adapter_T.cpp - Malloc_T.cpp - Managed_Object.cpp - Manual_Event.cpp - Map_Manager.cpp - Map_T.cpp - Message_Block_T.cpp - Message_Queue_T.cpp - Metrics_Cache_T.cpp - Module.cpp - Node.cpp - Obstack_T.cpp - Pair_T.cpp - RB_Tree.cpp - Reactor_Token_T.cpp - Refcountable_T.cpp - Refcounted_Auto_Ptr.cpp - Reverse_Lock_T.cpp - Select_Reactor_T.cpp - Singleton.cpp - Strategies_T.cpp - Stream.cpp - Stream_Modules.cpp - String_Base.cpp - Svc_Handler.cpp - Refcountable_T.cpp - TSS_T.cpp - Task_Ex_T.cpp - Task_T.cpp - Test_and_Set.cpp - Timeprobe_T.cpp - Time_Policy_T.cpp - Time_Value_T.cpp - Timer_Hash_T.cpp - Timer_Heap_T.cpp - Timer_List_T.cpp - Timer_Queue_Adapters.cpp - Timer_Queue_Iterator.cpp - Timer_Queue_T.cpp - Timer_Wheel_T.cpp - Tokenizer_T.cpp - Typed_SV_Message.cpp - Typed_SV_Message_Queue.cpp - Unbounded_Queue.cpp - Unbounded_Set.cpp - Unbounded_Set_Ex.cpp - Vector_T.cpp - } - - Inline_Files { - Bound_Ptr.inl - Condition_T.inl - Guard_T.inl - Handle_Gobbler.inl - Intrusive_Auto_Ptr.inl - Lock_Adapter_T.inl - Metrics_Cache_T.inl - Refcounted_Auto_Ptr.inl - Reverse_Lock_T.inl - TSS_T.inl - Time_Value_T.inl - } - - Header_Files { - // Set recurse so that everything from os_include is pulled in - recurse = 1 - - ACE_export.h - Bound_Ptr.h - Codeset_Symbols.h - CORBA_macros.h - Codeset_Symbols.h - Condition_T.h - Countdown_Time.h - Default_Constants.h - Event_Base.h - Global_Macros.h - Guard_T.h - Hash_Map_Manager.h - Handle_Gobbler.h - If_Then_Else.h - IO_Cntl_Msg.h - Intrusive_Auto_Ptr.h - Lock_Adapter_T.h - Log_Priority.h - Malloc_Base.h - Metrics_Cache.h - Metrics_Cache_T.h - Memory_Pool.h - Min_Max.h - Monotonic_Time_Policy.h - Netlink_Addr.h - Null_Barrier.h - Null_Condition.h - Null_Mutex.h - Null_Semaphore.h - Numeric_Limits.h - OS.h - OS_Memory.h - OS_NS_macros.h - OS_Thread_Adapter.h - Object_Manager_Base.h - Obstack.h - Proactor_Impl.h - Reactor_Impl.h - Reactor_Timer_Interface.h - Refcounted_Auto_Ptr.h - Reverse_Lock_T.h - Select_Reactor.h - SOCK_Netlink.h - SStringfwd.h - Stack_Trace.h - Static_Object_Lock.h - String_Base_Const.h - Svc_Conf.h - Svc_Conf_Param.h - Svc_Conf_Tokens.h - Svc_Conf_Token_Table.h - Synch.h - Synch_Traits.h - TSS_T.h - Time_Policy.h - Time_Value_T.h - Timer_Hash.h - Timer_Heap.h - Timer_List.h - Timer_Queue.h - Timer_Queuefwd.h - Timer_Wheel.h - Truncate.h - UPIPE_Addr.h - Value_Ptr.h - Version.h - Versioned_Namespace.h - ace_wchar.h - checked_iterator.h - config-*.h - config.h - iosfwd.h - os_include - post.h - pre.h - streams.h - svc_export.h - } - - Documentation_Files { - README - } - - Pkgconfig_Files { - ACE.pc.in - } - - InstallData_Files { - gendir = bin - ../bin/MakeProjectCreator - ../bin/DependencyGenerator - ../bin/mwc.pl - ../bin/mpc.pl - ../bin/add_rel_link.sh - ../bin/depgen.pl - ../bin/ace_install_pkgconfig.pl - ../bin/generate_export_file.pl - } - InstallData_Files { - gendir = include - ../include/makeinclude - } - InstallData_Files { - gendir = . - ../README - ../VERSION.txt - ../PROBLEM-REPORT-FORM - ../NEWS - ../COPYING - ../AUTHORS - ../THANKS - ../docs - } - - verbatim(gnuace, postinstall) { -" perl -i -pe's!\\$$[{(]ACE_ROOT[})]!$(INSTALL_PREFIX)/include!g unless /^\\s*include / || /^INS/' $(DESTDIR)$(INSTALL_PREFIX)/share/ace/include/makeinclude/wrapper_macros.GNU" -" perl -i -pe'BEGIN {$$lib = qq($(INSTALL_PREFIX)/$(INSTALL_LIB)); $$lp = qq(-value_project libpaths+=$$lib\\n); $$cl = qq(command_line =)}' -e'if ($$. == 1 && /^$$cl (.*)/ && $$1 !~ /$$lib\\b/) {chomp; print qq($$_ $$lp); $$_ = qq()}' -e'elsif ($$. == 1 && !/^$$cl/) {print qq($$cl $$lp)}' $(DESTDIR)$(INSTALL_PREFIX)/share/ace/bin/MakeProjectCreator/config/MPC.cfg" -" perl -i -ne'print unless /^\\s*ARCH\\s*[+?:]?=/' $(DESTDIR)$(INSTALL_PREFIX)/share/ace/include/makeinclude/platform_macros.GNU" -" echo export ACE_ROOT=$(INSTALL_PREFIX)/share/ace> $(DESTDIR)$(INSTALL_PREFIX)/share/ace/ace-devel.sh" - } -} diff --git a/ACE/tests/RAW_Socket_Test.cpp b/ACE/tests/RAW_Socket_Test.cpp deleted file mode 100644 index 818ef4a4bc89e..0000000000000 --- a/ACE/tests/RAW_Socket_Test.cpp +++ /dev/null @@ -1,801 +0,0 @@ -// ============================================================================ -// ============================================================================ -// -// = LIBRARY -// tests -// -// = DESCRIPTION -// This program tests the basic APIs supported in -// , and demonstrates how to use it. -// -// = AUTHOR -// Smith Achang -// -// ============================================================================ - -#include "test_config.h" -#include "ace/RAW_Socket.h" -#include "ace/SOCK_Dgram.h" -#include "ace/OS_NS_unistd.h" -#include "ace/OS_NS_string.h" -#include "ace/OS_NS_stdlib.h" - - -#pragma pack(push) -#pragma pack(1) -typedef struct _IP_HEADER_t -{ - uint8_t bVersionAndHeaderLen; - uint8_t bTypeOfService; - uint16_t u16TotalLenOfPacket; - uint16_t u16PacketID; - uint16_t u16Sliceinfo; - uint8_t bTTL; - uint8_t bTypeOfProtocol; - uint16_t u16CheckSum; - uint32_t u32SourIp; - uint32_t u32DestIp; -} IPv4_HEADER_t, *IPv4_HEADER_t_Ptr; - -typedef struct _IPv6_HEADER_t -{ - union - { - uint8_t abVTF[4]; - uint32_t dwVTF; - }; - - uint16_t u16PayloadLen; - uint8_t bNextHeader; - uint8_t bHopLimit; - - union - { - uint8_t abSrcAddr[16]; - uint32_t au32SrcAddr[4]; - uint64_t au64SrcAddr[2]; - }; - - union - { - uint8_t abDstAddr[16]; - uint32_t au32DstAddr[4]; - uint64_t au64DstAddr[2]; - }; -} IPv6_HEADER_t, *IPv6_HEADER_t_Ptr; - -typedef struct _UDP_HEADER_t -{ - uint16_t u16SrcPort; - uint16_t u16DstPort; - uint16_t u16Length; - uint16_t u16CheckSum; -} UDP_HEADER_t, *UDP_HEADER_t_Ptr; - -#pragma pack(pop) - -uint32_t Checksum(uint32_t cksum, uint8_t *pBuffer, uint32_t size) -{ - if ((nullptr == pBuffer) || (0 == size)) - { - // return passed value - return cksum; - } - - uint32_t num = 0; - uint8_t *p = pBuffer; - - while (size > 1) - { - cksum += (static_cast(p[num]) << 8 & 0xff00) | (static_cast(p[num + 1]) & 0x00FF); - size -= 2; - num += 2; - } - - if (size > 0) - { - cksum += (static_cast(p[num]) << 8) & 0xFFFF; - } - - while (cksum >> 16) - { - cksum = (cksum & 0xFFFF) + (cksum >> 16); - } - - return cksum; -} - -void ipv4_header_checksum(IPv4_HEADER_t_Ptr pIpHeader) -{ - uint8_t ipHeadLen = (pIpHeader->bVersionAndHeaderLen & 0x0F) << 2; - - pIpHeader->u16CheckSum = 0; - - uint32_t sum = Checksum(0, reinterpret_cast(pIpHeader), ipHeadLen); - - pIpHeader->u16CheckSum = htons(static_cast(~sum)); -} - -void udp6_header_checksum(IPv6_HEADER_t_Ptr pIpHeader, UDP_HEADER_t_Ptr ptUDPHeader, size_t udpLen) -{ - uint32_t sum = 0; - - //udpLen = sizeof(UDP_HEADER_T) + contentLen; - - // - ptUDPHeader->u16Length = htons(udpLen); - sum += udpLen; - - //sum += (ptUDPHeader->u16Length >> 8 & 0x00FF); - //sum += (ptUDPHeader->u16Length << 8 & 0xFF00); - - sum = Checksum(sum, &pIpHeader->abSrcAddr[0], 16); - sum = Checksum(sum, &pIpHeader->abDstAddr[0], 16); - - sum += (static_cast(pIpHeader->bNextHeader) & 0x00FF); - //finish the pseudo header checksum - - //udp section - ptUDPHeader->u16CheckSum = 0; - sum = Checksum(sum, reinterpret_cast(ptUDPHeader), udpLen); - - ptUDPHeader->u16CheckSum = htons(static_cast(~sum)); -} - - - -class SockGuard : private ACE_Copy_Disabled -{ -public: -explicit SockGuard(ACE_SOCK& sock):sock_(sock){}; -~SockGuard(){ sock_.close(); }; - -private: - ACE_SOCK& sock_; -}; - - -#define ACE_TEST_EXCEPTION_RETURN(expression, message)\ -do{\ - if(expression)\ - {\ - ACE_ERROR_RETURN ((LM_ERROR, ACE_TEXT (message)), 1);\ -}\ -}while(0) - -static char sendbuf[4096]; -static char recvbuf[4096]; - -/* - * This is the heart of the test. It test the api of RAW socket class - * - * It returns 0 for success and 1 for error so we can keep track of the - * total error count. - */ - - -static int -run_option_test () -{ - ACE_DEBUG ((LM_INFO, "%C begin to run ...\n", __func__)); - - ACE_INET_Addr addr(static_cast(0), "127.0.0.1"); - ACE_RAW_SOCKET rawSocket(addr); - SockGuard guard(rawSocket); - - ACE_TEST_EXCEPTION_RETURN(rawSocket.get_handle() == ACE_INVALID_HANDLE, " can not bind the addr\n"); - - int rc = rawSocket.enable(ACE_NONBLOCK); - - ACE_TEST_EXCEPTION_RETURN(rc < 0, " can not bind the addr\n"); - - - int optval = 0, optlen = sizeof(optval); - rc = rawSocket.get_option(SOL_SOCKET, SO_RCVBUF, &optval, &optlen); - - ACE_TEST_EXCEPTION_RETURN(rc < 0, " get SO_RCVBUF in failure\n"); - - optlen = sizeof(optval); - int new_optval = optval << 1; - rc = rawSocket.set_option(SOL_SOCKET, SO_RCVBUF, &new_optval, sizeof(new_optval)); - - ACE_TEST_EXCEPTION_RETURN(rc < 0, " set SO_RCVBUF new value in failure\n"); - ACE_DEBUG ((LM_INFO, "%C set_option got optlen: %d ...\n", __func__, optlen)); - - new_optval = 0; - optlen = sizeof(new_optval); - - rawSocket.get_option(SOL_SOCKET, SO_RCVBUF, &new_optval, &optlen); - - ACE_TEST_EXCEPTION_RETURN(new_optval < optval, " set SO_RCVBUF with no effect\n"); - - ACE_DEBUG ((LM_INFO, "old optval: %d, new optval ...\n", optval, new_optval)); - - return 0; -} - - -static int -run_reopen_test () -{ - ACE_DEBUG ((LM_INFO, "%C begin to run ...\n", __func__)); - - ACE_INET_Addr addr(static_cast(0), "127.0.0.1"); - ACE_RAW_SOCKET rawSocket(addr); - SockGuard guard(rawSocket); - - ACE_TEST_EXCEPTION_RETURN(rawSocket.get_handle() == ACE_INVALID_HANDLE, " can not bind the addr\n"); - - - rawSocket.close(); - - ACE_TEST_EXCEPTION_RETURN(rawSocket.get_handle() != ACE_INVALID_HANDLE, " close in failure\n"); - - ACE_INET_Addr addr2(static_cast(0), "127.0.0.8"); - int rc = rawSocket.open(addr2); - - ACE_TEST_EXCEPTION_RETURN(rc < 0, " reopen in failue\n"); - ACE_TEST_EXCEPTION_RETURN(rawSocket.get_handle() == ACE_INVALID_HANDLE, " handle is invalid after re-open\n"); - - - return 0; -} - -static void readUdpSocektToEmpty(ACE_SOCK_Dgram& udpSock) -{ - ACE_INET_Addr remote; - while(1) - { - int rc = udpSock.recv(recvbuf, sizeof(recvbuf),remote); - if(rc == -1) - break; - } -} - -static int raw_recv_data_until_meet_condition(ACE_RAW_SOCKET& raw, u_short port, size_t n, ACE_INET_Addr& remote, bool bUseIOVec = false, ACE_INET_Addr* to_addr = nullptr) -{ - ACE_INET_Addr local; - raw.get_local_addr(local); - - ssize_t len; - ssize_t expectedLen; - - do - { - ACE_OS::memset(recvbuf, 0, sizeof(recvbuf)); - - if(bUseIOVec) - { - iovec vec[5]; - unsigned int i = 0; - unsigned int const oneByteRecvVecNum = (sizeof(vec)/sizeof(vec[0])) - 1; - for(; i< oneByteRecvVecNum; ++i) - { - vec[i].iov_base = &recvbuf[i]; - vec[i].iov_len = 1; - } - - vec[i].iov_base = &recvbuf[i]; - vec[i].iov_len = sizeof(recvbuf) - oneByteRecvVecNum; - - len = raw.recv(vec, static_cast(sizeof(vec)/sizeof(vec[0])), remote, 0/*flags*/, nullptr, to_addr); - } - else - { - len = raw.recv(recvbuf, sizeof(recvbuf), remote, 0/*flags*/, nullptr, to_addr); - } - - if(len < 0) - { - ACE_DEBUG ((LM_INFO, "%C receive prcess reach the end ...\n", __func__)); - return -1; - } - - u_short nDstPort; - char const* szInetType; - UDP_HEADER_t_Ptr ptUDPHeader; - if(local.get_type() == AF_INET) - { - ptUDPHeader = reinterpret_cast(recvbuf + sizeof(IPv4_HEADER_t)); - expectedLen = (n + sizeof(IPv4_HEADER_t) + sizeof(UDP_HEADER_t)); - szInetType = "IPv4"; - } - else - { - ptUDPHeader = reinterpret_cast(recvbuf); - expectedLen = (n + sizeof(UDP_HEADER_t)); - szInetType = "IPv6"; - } - - nDstPort = ntohs (ptUDPHeader->u16DstPort); - if (port == nDstPort && len == expectedLen) - { - ACE_DEBUG ((LM_INFO, "%C %C recv expected pkgs ...\n", __func__, szInetType)); - break; - } - - ACE_DEBUG ((LM_DEBUG, "%C recv unexpected pkgs len: %d, srcPort: %u, dstPort:%u; expectedLen: %d, expectedPort: %u ...\n", __func__, len, ntohs(ptUDPHeader->u16SrcPort), ntohs(ptUDPHeader->u16DstPort), expectedLen, port)); - ACE_OS::sleep(1); - } while (1); - - return 0; -} - -static int -run_raw_udp_test_child_flow_sendby_self (ACE_RAW_SOCKET& raw, ACE_INET_Addr& client_addr, ACE_INET_Addr& server_addr, size_t n) -{ - ACE_DEBUG ((LM_INFO, "%C begin to run when sending data by self ...\n", __func__)); - - UDP_HEADER_t_Ptr ptUDPHeader = reinterpret_cast(sendbuf + sizeof(IPv4_HEADER_t_Ptr)); - - ptUDPHeader->u16SrcPort = htons(client_addr.get_port_number()); - ptUDPHeader->u16DstPort = htons(server_addr.get_port_number()); - ptUDPHeader->u16Length = htons(n + sizeof(UDP_HEADER_t)); - ptUDPHeader->u16CheckSum = 0; - - int rc = raw.send(ptUDPHeader, n + sizeof(UDP_HEADER_t), server_addr); - ssize_t expectedLen = n + sizeof(UDP_HEADER_t); - ACE_TEST_EXCEPTION_RETURN(rc != expectedLen, " raw socket can not send test pkg to server\n"); - - u_short server_port = server_addr.get_port_number(); - ACE_INET_Addr remote; - rc = raw_recv_data_until_meet_condition(raw, server_port, n, remote); - ACE_TEST_EXCEPTION_RETURN(rc != 0, " can recv test pkg from raw socket\n"); - - return 0; -} - -static int -run_raw_udp_test () -{ - ACE_DEBUG ((LM_INFO, "%C begin to run using the port auto assigned by OS to avoid port conflict ...\n", __func__)); - - ACE_INET_Addr addr(static_cast(0), "127.0.0.1"); - - ACE_SOCK_Dgram dgram(addr); - SockGuard dgram_guard(dgram); - - ACE_SOCK_Dgram dgram_server(addr); - SockGuard dgram_server_guard(dgram_server); - - ACE_RAW_SOCKET rawSocket(addr); - SockGuard raw_guard(rawSocket); - - ACE_INET_Addr client_addr ,server_addr,remote; - int rc = dgram.get_local_addr (client_addr); - - ACE_TEST_EXCEPTION_RETURN(rc < 0, " can not get client bound address\n"); - - rc = dgram_server.get_local_addr (server_addr); - - ACE_TEST_EXCEPTION_RETURN(rc < 0, " can not get server address\n"); - - ssize_t n = 512; - rc = dgram.send(sendbuf, n, server_addr); - ACE_TEST_EXCEPTION_RETURN(rc != n, " can send test pkg to server\n"); - - rc = dgram_server.recv(recvbuf, sizeof(recvbuf), remote); - ACE_TEST_EXCEPTION_RETURN(rc != n, " server socket can not recv the pkg client has send. It will be recv lately by raw socket\n"); - - u_short server_port = server_addr.get_port_number(); - rc = raw_recv_data_until_meet_condition(rawSocket, server_port, n, remote); - - ACE_TEST_EXCEPTION_RETURN(rc != 0, " can recv test pkg from raw socket\n"); - - rc = run_raw_udp_test_child_flow_sendby_self (rawSocket, client_addr, server_addr, n + 1); - ACE_TEST_EXCEPTION_RETURN(rc != 0, " can recv test pkg from raw socket when sending by self\n"); - - #if !defined (ACE_WIN32) - if(ACE_OS::getuid() == 0) - { - ACE_DEBUG ((LM_INFO, "%C test send & recv big pkt ...\n", __func__)); - rc = run_raw_udp_test_child_flow_sendby_self (rawSocket, client_addr, server_addr, n + 2048); - ACE_TEST_EXCEPTION_RETURN(rc != 0, " can recv test pkg from raw socket when sending big pkg by self\n"); - } - #endif - - return 0; -} - -static int -run_raw_generic_test () -{ - ACE_DEBUG ((LM_INFO, "%C begin to run generic raw socket i.e. send only RAW socket ...\n", __func__)); - - ACE_INET_Addr bindAddr(static_cast(0), "127.0.0.1"), remote; - ACE_INET_Addr client_addr(static_cast(0), "127.0.0.7") ,server_addr(static_cast(0), "127.0.0.8"); - ACE_SOCK_Dgram client_dgram(client_addr); - SockGuard client_dgram_guard(client_dgram); - - ACE_SOCK_Dgram server_dgram(server_addr); - SockGuard server_dgram_guard(server_dgram); - - ACE_RAW_SOCKET rawSocket(bindAddr, IPPROTO_RAW); - SockGuard raw_guard(rawSocket); - - ACE_TEST_EXCEPTION_RETURN(rawSocket.is_send_only() == false, " raw socket is not send only\n"); - - ssize_t len = rawSocket.recv(recvbuf, sizeof(recvbuf), remote); - ACE_TEST_EXCEPTION_RETURN(len != -1, " raw generic socket is send only , must not can recv data\n"); - - - client_dgram.get_local_addr (client_addr); - server_dgram.get_local_addr (server_addr); - - IPv4_HEADER_t_Ptr ptIPv4Header = reinterpret_cast(sendbuf); - UDP_HEADER_t_Ptr ptUDPHeader = reinterpret_cast(sendbuf + sizeof(IPv4_HEADER_t)); - u_short n = 2048; - - *ptIPv4Header = {}; - - ptIPv4Header->bVersionAndHeaderLen = 0x45; - ptIPv4Header->u16TotalLenOfPacket = htons(sizeof(IPv4_HEADER_t) + sizeof(UDP_HEADER_t) + n); // 数据包长度 - ptIPv4Header->u16PacketID = ACE_OS::rand(); - ptIPv4Header->bTTL = 64; - ptIPv4Header->bTypeOfProtocol = IPPROTO_UDP; - ptIPv4Header->u16CheckSum = 0; - ptIPv4Header->u32SourIp = (static_cast(client_addr.get_addr()))->sin_addr.s_addr; - ptIPv4Header->u32DestIp = (static_cast(server_addr.get_addr()))->sin_addr.s_addr; - - u_short client_port_number = client_addr.get_port_number(); - u_short server_port_number = server_addr.get_port_number(); - - - ptUDPHeader->u16SrcPort = htons(client_port_number); - ptUDPHeader->u16DstPort = htons(server_port_number); - ptUDPHeader->u16Length = htons(sizeof(UDP_HEADER_t) + n); - ptUDPHeader->u16CheckSum = 0; - - #if !defined (ACE_WIN32) - if(ACE_OS::getuid() == 0) - { - ACE_DEBUG ((LM_INFO, "%C raw generic socket will send bytes exceeding the MTU ...\n", __func__)); - n = 2048; - len = rawSocket.send(sendbuf, sizeof(IPv4_HEADER_t) + sizeof(UDP_HEADER_t) + n, server_addr); - ACE_TEST_EXCEPTION_RETURN(len != -1, " raw generic socket can not send pkg more than MTU\n"); - } - #endif - - n = 468; - ptUDPHeader->u16Length = htons(sizeof(UDP_HEADER_t) + n); - len = rawSocket.send(sendbuf, sizeof(IPv4_HEADER_t) + sizeof(UDP_HEADER_t) + n, server_addr); - size_t expectedLen = (sizeof(IPv4_HEADER_t) + sizeof(UDP_HEADER_t) + n); - ACE_DEBUG ((LM_INFO, "%C raw generic socket send %d bytes, expected %u bytes ...\n", __func__, len, expectedLen)); - ACE_TEST_EXCEPTION_RETURN(static_cast(len) != expectedLen, " raw generic socket send pkg in failure\n"); - - ACE_OS::sleep(1); - ACE_DEBUG ((LM_INFO, "%C enable nonblock status ...\n", __func__)); - server_dgram.enable(ACE_NONBLOCK); - len = server_dgram.recv(recvbuf, sizeof(recvbuf), remote); - expectedLen = n; - ACE_DEBUG ((LM_INFO, "%C udp server socket recv %d bytes, expected %u bytes ...\n", __func__, len, expectedLen)); - ACE_TEST_EXCEPTION_RETURN(static_cast(len) != n, " server socket receives pkg in failure length is not the same\n"); - ACE_TEST_EXCEPTION_RETURN(static_cast(remote.get_addr())->sin_addr.s_addr != static_cast(client_addr.get_addr())->sin_addr.s_addr, " server socket receives pkg in failure: the source IP is not the same\n"); - - return 0; -} - -#if defined (ACE_HAS_IPV6) -static int -run_ipv6_pkginfo_test () -{ - ACE_DEBUG ((LM_INFO, "%C begin to run IPv6 pkginfo test ...\n", __func__)); - - ACE_INET_Addr bindAddr(static_cast(0), "::1"); - ACE_INET_Addr anyAddr(static_cast(0), "::"); - - ACE_INET_Addr client_addr(static_cast(0), "::1") ,server_addr(static_cast(0), "::1"); - - - ACE_SOCK_Dgram client_dgram(client_addr); - SockGuard client_dgram_guard(client_dgram); - client_dgram.get_local_addr(client_addr); - - ACE_SOCK_Dgram server_dgram(server_addr); - SockGuard server_dgram_guard(server_dgram); - server_dgram.get_local_addr(server_addr); - - ACE_DEBUG ((LM_INFO, "%C get the real bound addr and port client_port: %u, server_port: %u...\n", __func__, client_addr.get_port_number(), server_addr.get_port_number())); - - ACE_RAW_SOCKET rawSocket(bindAddr, IPPROTO_UDP); - rawSocket.enable(ACE_NONBLOCK); - SockGuard raw_guard(rawSocket); - - ACE_RAW_SOCKET rawWildcardSocket(anyAddr, IPPROTO_UDP); - rawWildcardSocket.enable(ACE_NONBLOCK); - SockGuard raw_wildcard_guard(rawWildcardSocket); - - client_dgram.send("hello world", sizeof("hello world"), server_addr); - - ACE_DEBUG ((LM_INFO, "%C the send pkg will be received by two raw sockets ...\n", __func__)); - ACE_OS::sleep(1); - - ACE_INET_Addr remote; - int rc = raw_recv_data_until_meet_condition(rawSocket, server_addr.get_port_number(), sizeof("hello world"), remote); - - ACE_TEST_EXCEPTION_RETURN(rc != 0, " non wildcard raw socket can not recv expectedRecvLen\n"); - - ACE_INET_Addr to_addr; - - ACE_DEBUG ((LM_INFO, "%C send pkg again to test common raw socket with to_adr parameter ...\n", __func__)); - client_dgram.send("hello world", sizeof("hello world"), server_addr); - ACE_OS::sleep(1); - - rc = raw_recv_data_until_meet_condition(rawSocket, server_addr.get_port_number(), sizeof("hello world"), remote, false, &to_addr); - ACE_TEST_EXCEPTION_RETURN(rc != 0, " non wildcard raw socket can not recv expectedRecvLen with to_addr parameter\n"); - - in6_addr* remote_sin6_addr = &(static_cast(remote.get_addr())->sin6_addr); - in6_addr* to_sin6_addr = &(static_cast(to_addr.get_addr())->sin6_addr); - int cmp = ACE_OS::memcmp(remote_sin6_addr, to_sin6_addr, sizeof(*to_sin6_addr)); - ACE_TEST_EXCEPTION_RETURN(cmp != 0, " non wildcard raw socket got to_addr with invalid value\n"); - - rc = raw_recv_data_until_meet_condition(rawWildcardSocket, server_addr.get_port_number(), sizeof("hello world"), remote, false, &to_addr); - ACE_TEST_EXCEPTION_RETURN(rc != 0, " can not recv expectedRecvLen with to_addr when provided to wildcard RAW socket\n"); - remote_sin6_addr = &(static_cast(remote.get_addr())->sin6_addr); - to_sin6_addr = &(static_cast(to_addr.get_addr())->sin6_addr); - cmp = ACE_OS::memcmp(remote_sin6_addr, to_sin6_addr, sizeof(*to_sin6_addr)); - ACE_TEST_EXCEPTION_RETURN(cmp != 0, " to_addr with invalid value when provided to wildcard RAW socket\n"); - - return 0; -} -#endif - -static int -run_iovec_IPv6_api_test () -{ - ACE_DEBUG ((LM_INFO, "%C begin to run IPv6 iovec api test ...\n", __func__)); - - ACE_INET_Addr bindAddr(static_cast(0), "::1"); - ACE_INET_Addr anyAddr(static_cast(0), "::"); - - ACE_INET_Addr client_addr(static_cast(0), "::1") ,server_addr(static_cast(0), "::1"); - - ACE_SOCK_Dgram client_dgram(client_addr); - SockGuard client_dgram_guard(client_dgram); - client_dgram.get_local_addr(client_addr); - - ACE_SOCK_Dgram server_dgram(server_addr); - server_dgram.enable(ACE_NONBLOCK); - SockGuard server_dgram_guard(server_dgram); - server_dgram.get_local_addr(server_addr); - - ACE_DEBUG ((LM_INFO, "%C get the real bound addr and port client_port: %u, server_port: %u...\n", __func__, client_addr.get_port_number(), server_addr.get_port_number())); - - ACE_RAW_SOCKET rawSocket(bindAddr, IPPROTO_UDP); - rawSocket.enable(ACE_NONBLOCK); - SockGuard raw_guard(rawSocket); - - client_dgram.send("hello world", sizeof("hello world"), server_addr); - - ACE_DEBUG ((LM_INFO, "%C the send pkg will be received by raw sockets ...\n", __func__)); - ACE_OS::sleep(1); - - ACE_INET_Addr remote; - int rc = raw_recv_data_until_meet_condition(rawSocket, server_addr.get_port_number(), sizeof("hello world"), remote); - - ACE_TEST_EXCEPTION_RETURN(rc != 0, " raw socket can not recv expectedRecvLen\n"); - ACE_TEST_EXCEPTION_RETURN(ACE_OS::strncmp(recvbuf + sizeof(UDP_HEADER_t), "hello world", sizeof("hello world")) != 0, " non wildcard raw socket can not recv expected content\n"); - - ACE_INET_Addr to_addr; - - ACE_DEBUG ((LM_INFO, "%C send pkg again to test common raw socket with to_adr parameter ...\n", __func__)); - client_dgram.send("hello world", sizeof("hello world"), server_addr); - ACE_OS::sleep(1); - - rc = raw_recv_data_until_meet_condition(rawSocket, server_addr.get_port_number(), sizeof("hello world"), remote, true, &to_addr); - ACE_TEST_EXCEPTION_RETURN(rc != 0, " raw socket can not recv expectedRecvLen with to_addr parameter\n"); - ACE_TEST_EXCEPTION_RETURN(ACE_OS::strncmp(recvbuf + sizeof(UDP_HEADER_t), "hello world", sizeof("hello world")) != 0, " raw socket can not recv expected content with to_addr parameter\n"); - - in6_addr* remote_sin6_addr = &(static_cast(remote.get_addr())->sin6_addr); - in6_addr* to_sin6_addr = &(static_cast(to_addr.get_addr())->sin6_addr); - int cmp = ACE_OS::memcmp(remote_sin6_addr, to_sin6_addr, sizeof(*to_sin6_addr)); - ACE_TEST_EXCEPTION_RETURN(cmp != 0, " raw socket got to_addr with invalid value\n"); - - ACE_DEBUG ((LM_INFO, "%C test iovec send ...\n", __func__)); - - IPv6_HEADER_t_Ptr ptIPv6Header = reinterpret_cast(sendbuf); - UDP_HEADER_t_Ptr ptUDPHeader = reinterpret_cast(sendbuf + sizeof(IPv6_HEADER_t)); - u_short n = sizeof("hello world"); - - *ptIPv6Header = {}; - ptIPv6Header->bNextHeader = IPPROTO_UDP; - memcpy(ptIPv6Header->abSrcAddr, static_cast(client_addr.get_addr())->sin6_addr.s6_addr, 16); - memcpy(ptIPv6Header->abDstAddr, static_cast(server_addr.get_addr())->sin6_addr.s6_addr, 16); - - u_short client_port_number = client_addr.get_port_number(); - u_short server_port_number = server_addr.get_port_number(); - - - ptUDPHeader->u16SrcPort = htons(client_port_number); - ptUDPHeader->u16DstPort = htons(server_port_number); - //fill content - ACE_OS::strcpy(sendbuf + sizeof(IPv6_HEADER_t) + sizeof(UDP_HEADER_t), "hello world"); - udp6_header_checksum(ptIPv6Header, ptUDPHeader, sizeof(UDP_HEADER_t) + n); - - iovec iov_udp[2]; - iov_udp[0].iov_base = reinterpret_cast(ptUDPHeader); - iov_udp[0].iov_len = sizeof(UDP_HEADER_t); - iov_udp[1].iov_base = const_cast("hello world"); - iov_udp[1].iov_len = sizeof("hello world"); - - - ACE_DEBUG ((LM_INFO, "%C test iovec using common udp6 socket ...\n", __func__)); - - rc = client_dgram.send(iov_udp, static_cast(sizeof(iov_udp)/sizeof(iov_udp[0])), server_addr); - ACE_TEST_EXCEPTION_RETURN(rc == -1, " udp6 socket can not send using iov \n"); - - readUdpSocektToEmpty(server_dgram); - ACE_INET_Addr iov_server_addr(server_addr); - - ACE_DEBUG ((LM_INFO, "%C must set port to zero ??? ...\n", __func__)); - iov_server_addr.set_port_number(0); - rc = rawSocket.send(iov_udp, static_cast(sizeof(iov_udp)/sizeof(iov_udp[0])), iov_server_addr); - ACE_TEST_EXCEPTION_RETURN(rc == -1, " raw6 socket can not send using iov \n"); - ACE_OS::sleep(1); - - rc = server_dgram.recv(recvbuf, sizeof(recvbuf), remote); - ACE_TEST_EXCEPTION_RETURN(rc == -1, " server socket6 can not recv pkg by iov send\n"); - ACE_TEST_EXCEPTION_RETURN(ACE_OS::strcmp(recvbuf, "hello world") != 0, " the content of server socket6 receive pkg is not expected by iov send\n"); - - return 0; -} - -static int -run_iovec_IPv4_api_test () -{ - ACE_DEBUG ((LM_INFO, "%C begin to run IPv4 iovec api test ...\n", __func__)); - - ACE_INET_Addr bindAddr(static_cast(0), "127.0.0.1"); - - ACE_INET_Addr client_addr(static_cast(0), "127.0.0.1") ,server_addr(static_cast(0), "127.0.0.1"); - - ACE_SOCK_Dgram client_dgram(client_addr); - SockGuard client_dgram_guard(client_dgram); - client_dgram.get_local_addr(client_addr); - - ACE_SOCK_Dgram server_dgram(server_addr); - server_dgram.enable(ACE_NONBLOCK); - SockGuard server_dgram_guard(server_dgram); - server_dgram.get_local_addr(server_addr); - - ACE_DEBUG ((LM_INFO, "%C get the real bound addr and port client_port: %u, server_port: %u...\n", __func__, client_addr.get_port_number(), server_addr.get_port_number())); - - ACE_RAW_SOCKET rawSocket(bindAddr, IPPROTO_UDP); - rawSocket.enable(ACE_NONBLOCK); - SockGuard raw_guard(rawSocket); - - client_dgram.send("hello world", sizeof("hello world"), server_addr); - - ACE_DEBUG ((LM_INFO, "%C the send pkg will be received by raw sockets ...\n", __func__)); - ACE_OS::sleep(1); - - ACE_INET_Addr remote; - int rc = raw_recv_data_until_meet_condition(rawSocket, server_addr.get_port_number(), sizeof("hello world"), remote); - - ACE_TEST_EXCEPTION_RETURN(rc != 0, " raw socket can not recv expectedRecvLen\n"); - ACE_TEST_EXCEPTION_RETURN(ACE_OS::strncmp(recvbuf + sizeof(IPv4_HEADER_t) + sizeof(UDP_HEADER_t), "hello world", sizeof("hello world")) != 0, " non wildcard raw socket can not recv expected content\n"); - - ACE_INET_Addr to_addr; - - ACE_DEBUG ((LM_INFO, "%C send pkg again to test common raw socket with to_adr parameter ...\n", __func__)); - client_dgram.send("hello world", sizeof("hello world"), server_addr); - ACE_OS::sleep(1); - - rc = raw_recv_data_until_meet_condition(rawSocket, server_addr.get_port_number(), sizeof("hello world"), remote, true, &to_addr); - ACE_TEST_EXCEPTION_RETURN(rc != 0, " raw socket can not recv expectedRecvLen with to_addr parameter\n"); - ACE_TEST_EXCEPTION_RETURN(ACE_OS::strncmp(recvbuf + sizeof(IPv4_HEADER_t) + sizeof(UDP_HEADER_t), "hello world", sizeof("hello world")) != 0, " raw socket can not recv expected content with to_addr parameter\n"); - - in_addr* remote_sin_addr = &(static_cast(remote.get_addr())->sin_addr); - in_addr* to_sin_addr = &(static_cast(to_addr.get_addr())->sin_addr); - int cmp = ACE_OS::memcmp(remote_sin_addr, to_sin_addr, sizeof(*to_sin_addr)); - ACE_TEST_EXCEPTION_RETURN(cmp != 0, " raw socket got to_addr with invalid value\n"); - - ACE_DEBUG ((LM_INFO, "%C test iovec send ...\n", __func__)); - readUdpSocektToEmpty(server_dgram); - - IPv4_HEADER_t_Ptr ptIPv4Header = reinterpret_cast(sendbuf); - UDP_HEADER_t_Ptr ptUDPHeader = reinterpret_cast(sendbuf + sizeof(IPv4_HEADER_t)); - u_short n = sizeof("hello world"); - - *ptIPv4Header = {}; - - ptIPv4Header->bVersionAndHeaderLen = 0x45; - ptIPv4Header->u16TotalLenOfPacket = htons(sizeof(IPv4_HEADER_t) + sizeof(UDP_HEADER_t) + n); // 数据包长度 - ptIPv4Header->u16PacketID = ACE_OS::rand(); - ptIPv4Header->bTTL = 64; - ptIPv4Header->bTypeOfProtocol = IPPROTO_UDP; - ptIPv4Header->u16CheckSum = 0; - ptIPv4Header->u32SourIp = (static_cast(client_addr.get_addr()))->sin_addr.s_addr; - ptIPv4Header->u32DestIp = (static_cast(server_addr.get_addr()))->sin_addr.s_addr; - - u_short client_port_number = client_addr.get_port_number(); - u_short server_port_number = server_addr.get_port_number(); - - - ptUDPHeader->u16SrcPort = htons(client_port_number); - ptUDPHeader->u16DstPort = htons(server_port_number); - ptUDPHeader->u16Length = htons(sizeof(UDP_HEADER_t) + n); - ptUDPHeader->u16CheckSum = 0; - ACE_OS::strcpy(sendbuf + sizeof(IPv4_HEADER_t) + sizeof(UDP_HEADER_t), "hello world"); - - iovec iov_udp[2]; - iov_udp[0].iov_base = reinterpret_cast(ptUDPHeader); - iov_udp[0].iov_len = sizeof(UDP_HEADER_t); - iov_udp[1].iov_base = const_cast("hello world"); - iov_udp[1].iov_len = sizeof("hello world"); - - rc = rawSocket.send(iov_udp, static_cast(sizeof(iov_udp)/sizeof(iov_udp[0])), server_addr); - ACE_TEST_EXCEPTION_RETURN(rc == -1, " raw4 socket can send using iov\n"); - ACE_OS::sleep(1); - - rc = server_dgram.recv(recvbuf, sizeof(recvbuf), remote); - ACE_TEST_EXCEPTION_RETURN(rc == -1, " server socket4 can not recv pkg by iov send\n"); - ACE_TEST_EXCEPTION_RETURN(ACE_OS::strcmp(recvbuf, "hello world") != 0, " the content of server socket4 receive pkg is not expected by iov send\n"); - - return 0; -} - -int -run_main (int, ACE_TCHAR *argv[]) -{ - ACE_START_TEST (ACE_TEXT ("RAW_Socket_Test")); - ACE_UNUSED_ARG (argv); - int retval = 0; - -#if !defined (ACE_WIN32) - // set the lo interface MTU - int oldMTU; - if(ACE_OS::getuid() == 0) - { - ACE_INET_Addr anyAddr(static_cast(0)); - ACE_SOCK_Dgram netdevice(anyAddr); - SockGuard dgram_guard(netdevice); - - struct ifreq tReq = {}; - ACE_OS::snprintf(tReq.ifr_name, sizeof(tReq.ifr_name), "%s", "lo"); - - tReq.ifr_mtu = 0; - ACE_OS::ioctl(netdevice.get_handle(), SIOCGIFMTU, &tReq); - oldMTU = tReq.ifr_mtu; - - tReq.ifr_mtu = 1400; - ACE_OS::ioctl(netdevice.get_handle(), SIOCSIFMTU, &tReq); - - tReq.ifr_mtu = 0; - ACE_OS::ioctl(netdevice.get_handle(), SIOCGIFMTU, &tReq); - ACE_TEST_EXCEPTION_RETURN(tReq.ifr_mtu != 1400, " can set MTU for lo interface\n"); - } -#endif - - // Run the tests for each type of ordering. - retval = run_option_test (); - retval += run_reopen_test(); - retval += run_raw_udp_test(); - retval += run_raw_generic_test(); - retval += run_iovec_IPv4_api_test(); - retval += run_iovec_IPv6_api_test(); - - #if defined (ACE_HAS_IPV6) - retval += run_ipv6_pkginfo_test(); - #else - ACE_DEBUG ((LM_INFO, "%C without IPv6 macro ...\n", __func__)); - #endif - - ACE_END_TEST; - -#if !defined (ACE_WIN32) - if(ACE_OS::getuid() == 0) - { - ACE_INET_Addr anyAddr(static_cast(0)); - ACE_SOCK_Dgram netdevice(anyAddr); - SockGuard dgram_guard(netdevice); - - struct ifreq tReq = {}; - ACE_OS::snprintf(tReq.ifr_name, sizeof(tReq.ifr_name), "%s", "lo"); - tReq.ifr_mtu = oldMTU; - ACE_OS::ioctl(netdevice.get_handle(), SIOCSIFMTU, &tReq); - } -#endif - - return retval; -} diff --git a/ACE/tests/tests.mpc b/ACE/tests/tests.mpc deleted file mode 100644 index 0ddaa5d56ca2d..0000000000000 --- a/ACE/tests/tests.mpc +++ /dev/null @@ -1,2307 +0,0 @@ -// -*- MPC -*- -project(Test_Output) : acelib, script { - libout = . - sharedname = Test_Output - dynamicflags += TEST_OUTPUT_BUILD_DLL - Source_Files { - Test_Output.cpp - } - Header_Files { - Test_Output_Export.h - test_config.h - } - Resource_Files { - } - Script_Files { - run_test.lst - } -} - -project(Framework Component DLL) : acelib { - libout = . - sharedname = Framework_Component_DLL - dynamicflags += FRAMEWORK_COMPONENT_DLL_BUILD_DLL - - Source_Files { - Framework_Component_DLL.cpp - } - Header_Files { - Framework_Component_DLL.h - Framework_Component_DLL_Export.h - } - Resource_Files { - } -} - -project(DLL Test Parent Lib) : acelib { - libout = . - sharedname = DLL_Test_Parent - dynamicflags += DLL_TEST_PARENT_BUILD_DLL - - Source_Files { - DLL_Test_Parent.cpp - } - Header_Files { - DLL_Test_Parent_Export.h - test_config.h - } - Resource_Files { - } -} - -project(DLL Test Lib) : acelib, dll_test_parent_lib { - libout = . - sharedname = DLL_Test_Lib - dynamicflags += ACE_SVC_BUILD_DLL - - Source_Files { - DLL_Test_Impl.cpp - } - Header_Files { - test_config.h - } - Resource_Files { - } -} - -project(Based Pointer Test Lib) : acelib { - libout = . - avoids += ace_for_tao - sharedname = Based_Pointer_Test_Lib - dynamicflags += ACE_SVC_BUILD_DLL - - Source_Files { - Based_Pointer_Test_Lib.cpp - } - Header_Files { - Based_Pointer_Test_Lib_Export.h - } - Resource_Files { - } -} - -project(Service Config DLL) : acelib { - libout = . - sharedname = Service_Config_DLL - dynamicflags += SERVICE_CONFIG_DLL_BUILD_DLL - - Source_Files { - Service_Config_DLL.cpp - } - Header_Files { - Service_Config_DLL.h - Service_Config_DLL_Export.h - } - Resource_Files { - } -} - -project(ACE Init Test) : acemfcexe { - requires += mfc - macros += _AFXDLL - - after += Test_Output - libs += Test_Output - - exename = ACE_Init_Test - Source_Files { - ACE_Init_Test.cpp - ACE_Init_TestDlg.cpp - } - Header_Files { - ACE_Init_Test.h - ACE_Init_Test_Resource.h - ACE_Init_TestDlg.h - ACE_Init_TestStdAfx.h - } - Resource_Files { - ACE_Init_Test.ico - ACE_Init_Test.rc - } - Build_Files { - tests.mpc - tests.mwc - } -} - -project(Task Wait Test) : acetest { - exename = Task_Wait_Test - Source_Files { - Task_Wait_Test.cpp - } -} - -project(ACE Test) : acetest { - exename = ACE_Test - Source_Files { - ACE_Test.cpp - } -} - -project(Aio Platform Test) : acetest { - exename = Aio_Platform_Test - Source_Files { - Aio_Platform_Test.cpp - } -} - -project(Arg Shifter Test) : acetest { - exename = Arg_Shifter_Test - Source_Files { - Arg_Shifter_Test.cpp - } -} - -project(Stack Trace Test) : acetest { - exename = Stack_Trace_Test - Source_Files { - Stack_Trace_Test.cpp - } -} - -project(Array Map Test) : acetest { - exename = Array_Map_Test - Source_Files { - Array_Map_Test.cpp - } -} - -project(ARGV Test) : acetest { - exename = ARGV_Test - Source_Files { - ARGV_Test.cpp - } -} - -project(Atomic Op Test) : acetest { - exename = Atomic_Op_Test - Source_Files { - Atomic_Op_Test.cpp - } -} - -project(Auto Event Test) : acetest { - exename = Auto_Event_Test - Source_Files { - Auto_Event_Test.cpp - } -} - -project(Auto IncDec Test) : acetest { - exename = Auto_IncDec_Test - Source_Files { - Auto_IncDec_Test.cpp - } -} - -project(Barrier Test) : acetest { - exename = Barrier_Test - Source_Files { - Barrier_Test.cpp - } -} - -project(Basic Types Test) : acetest { - exename = Basic_Types_Test - Source_Files { - Basic_Types_Test.cpp - } -} - -project(Bound Ptr Test) : acetest { - avoids += ace_for_tao - exename = Bound_Ptr_Test - Source_Files { - Bound_Ptr_Test.cpp - } -} - -project(Buffer Stream Test) : acetest { - exename = Buffer_Stream_Test - Source_Files { - Buffer_Stream_Test.cpp - } -} - -project(Bug_1576_Regression_Test) : acetest { - exename = Bug_1576_Regression_Test - Source_Files { - Bug_1576_Regression_Test.cpp - } -} - -project(Bug_1890_Regression_Test) : acetest { - exename = Bug_1890_Regression_Test - Source_Files { - Bug_1890_Regression_Test.cpp - } -} - -project(Bug_2368_Regression_Test) : acetest { - exename = Bug_2368_Regression_Test - Source_Files { - Bug_2368_Regression_Test.cpp - } -} - -project(Bug_2434_Regression_Test) : acetest { - exename = Bug_2434_Regression_Test - Source_Files { - Bug_2434_Regression_Test.cpp - } -} - -project(Bug_2497_Regression_Test) : acetest { - exename = Bug_2497_Regression_Test - Source_Files { - Bug_2497_Regression_Test.cpp - } -} - -project(Bug_2540_Regression_Test) : acetest { - exename = Bug_2540_Regression_Test - Source_Files { - Bug_2540_Regression_Test.cpp - } -} - -project(Bug_2653_Regression_Test) : acetest { - exename = Bug_2653_Regression_Test - Source_Files { - Bug_2653_Regression_Test.cpp - } -} - -project(Bug_2740_Regression_Test) : acetest, threads { - exename = Bug_2740_Regression_Test - Source_Files { - Bug_2740_Regression_Test.cpp - } -} - -project(Bug_2772_Regression_Test) : acetest, threads { - exename = Bug_2772_Regression_Test - Source_Files { - Bug_2772_Regression_Test.cpp - } -} - -project(Bug_2815_Regression_Test) : acetest { - exename = Bug_2815_Regression_Test - Source_Files { - Bug_2815_Regression_Test.cpp - } -} - -project(Bug_2820_Regression_Test) : acetest { - exename = Bug_2820_Regression_Test - Source_Files { - Bug_2820_Regression_Test.cpp - } -} - -project(Bug_2975_Regression_Test) : acetest { - exename = Bug_2975_Regression_Test - Source_Files { - Bug_2975_Regression_Test.cpp - } -} - -project (Bug_2980_Regression_Test) { - - // The test uses a non-ACE executable, - // which loads an ACE-based DLL. - - after += Bug_2980_Regression_Dll - avoids += uses_wchar - includes += $(ACE_ROOT) - staticflags += ACE_AS_STATIC_LIBS - exename = Bug_2980_Regression_Test - Source_Files { - Bug_2980_Regression_Test.cpp - } - Resource_Files { - } - specific(vxtest) { - libs += Bug_2980_Regression ACE - } -} - -project (Bug_2980_Regression_Dll): acelib { - libout = . - sharedname = Bug_2980_Regression - dynamicflags += TEST_OUTPUT_BUILD_DLL - Source_Files { - Test_Output.cpp - Bug_2980_Regression_Dll.cpp - } - Resource_Files { - } -} - -project(Bug_3102_Regression_Test) : acetest { - exename = Bug_3102_Regression_Test - Source_Files { - Bug_3102_Regression_Test.cpp - } -} - -project(Bug_3319_Regression_Test) : acetest { - exename = Bug_3319_Regression_Test - Source_Files { - Bug_3319_Regression_Test.cpp - } -} - -project(Bug_3432_Regression_Test) : acetest { - exename = Bug_3432_Regression_Test - Source_Files { - Bug_3432_Regression_Test.cpp - } -} - -project(Bug_3500_Regression_Test) : acetest { - exename = Bug_3500_Regression_Test - Source_Files { - Bug_3500_Regression_Test.cpp - } -} - -project(Bug_3505_Regression_Test) : acetest { - exename = Bug_3505_Regression_Test - Source_Files { - Bug_3505_Regression_Test.cpp - } -} - -project(Bug_3532_Regression_Test) : acetest { - exename = Bug_3532_Regression_Test - Source_Files { - Bug_3532_Regression_Test.cpp - } -} - -project(Bug_3539_Regression_Test) : acetest { - exename = Bug_3539_Regression_Test - Source_Files { - Bug_3539_Regression_Test.cpp - } -} - -project(Bug_3541_Regression_Test) : acetest { - exename = Bug_3541_Regression_Test - Source_Files { - Bug_3541_Regression_Test.cpp - } -} - -project(Bug_3673_Regression_Test) : acetest { - exename = Bug_3673_Regression_Test - Source_Files { - Bug_3673_Regression_Test.cpp - } -} - -project(Bug_3709_Regression_Test) : acetest { - exename = Bug_3709_Regression_Test - Source_Files { - Bug_3709_Regression_Test.cpp - } -} - -project(Bug_3710_Regression_Test) : acetest { - exename = Bug_3710_Regression_Test - Source_Files { - Bug_3710_Regression_Test.cpp - } -} - -project(Bug_3729_Regression_Test) : acetest { - exename = Bug_3729_Regression_Test - Source_Files { - Bug_3729_Regression_Test.cpp - } -} - -project(Bug_3744_Regression_Test) : acetest { - exename = Bug_3744_Regression_Test - Source_Files { - Bug_3744_Regression_Test.cpp - } -} - -project(Bug_3758_Regression_Test) : acetest { - exename = Bug_3758_Regression_Test - Source_Files { - Bug_3758_Regression_Test.cpp - } -} - -project(Bug_3878_Regression_Test) : acetest { - exename = Bug_3878_Regression_Test - Source_Files { - Bug_3878_Regression_Test.cpp - } -} - -project(Bug_3911_Regression_Test) : acetest { - avoids += ace_for_tao - exename = Bug_3911_Regression_Test - Source_Files { - Bug_3911_Regression_Test.cpp - } -} - -project(Bug_3943_Regression_Test) : acetest { - avoids += ace_for_tao - exename = Bug_3943_Regression_Test - Source_Files { - Bug_3943_Regression_Test.cpp - } -} - -project(Bug_3974_Regression_Test) : acetest { - exename = Bug_3974_Regression_Test - Source_Files { - Bug_3974_Regression_Test.cpp - } -} - -project(Bug_4055_Regression_Test) : acetest, threads { - exename = Bug_4055_Regression_Test - Source_Files { - Bug_4055_Regression_Test.cpp - } -} - -project(Bug_4189_Regression_Test) : acetest, threads { - avoids += ace_for_tao - exename = Bug_4189_Regression_Test - Source_Files { - Bug_4189_Regression_Test.cpp - } -} - -project(Cache Map Manager Test) : acetest { - exename = Cache_Map_Manager_Test - Source_Files { - Cache_Map_Manager_Test.cpp - } -} - -project(Memcpy_Test) : acetest { - avoids += ace_for_tao - exename = Memcpy_Test - Source_Files { - Memcpy_Test.cpp - } -} - -project(Cached Accept Conn Test) : acetest { - avoids += ace_for_tao - exename = Cached_Accept_Conn_Test - Source_Files { - Cached_Accept_Conn_Test.cpp - } -} - -project(Cached Allocator Test) : acetest { - avoids += ace_for_tao - exename = Cached_Allocator_Test - Source_Files { - Cached_Allocator_Test.cpp - } -} - -project(Cached Conn Test) : acetest { - avoids += ace_for_tao - exename = Cached_Conn_Test - Source_Files { - Cached_Conn_Test.cpp - } -} - -project(Capabilities Test) : acetest { - avoids += ace_for_tao - exename = Capabilities_Test - Source_Files { - Capabilities_Test.cpp - } -} - -project(CDR File Test) : acetest { - avoids += ace_for_tao - exename = CDR_File_Test - Source_Files { - CDR_File_Test.cpp - } -} - -project(CDR Fixed Test) : acetest { - avoids += ace_for_tao - exename = CDR_Fixed_Test - Source_Files { - CDR_Fixed_Test.cpp - } -} - -project(CDR Test) : acetest { - exename = CDR_Test - Source_Files { - CDR_Test.cpp - } -} - -project(Chrono Test) : acetest { - exename = Chrono_Test - Source_Files { - Chrono_Test.cpp - } -} - -project(Collection Test) : acetest { - exename = Collection_Test - Source_Files { - Collection_Test.cpp - } -} - -project(Compiler_Features_01_Test) : acetest { - exename = Compiler_Features_01_Test - Source_Files { - Compiler_Features_01_Test.cpp - } -} - -project(Compiler_Features_02_Test) : acetest { - exename = Compiler_Features_02_Test - Source_Files { - Compiler_Features_02_Test.cpp - } -} - -project(Compiler_Features_03_Test) : acetest { - exename = Compiler_Features_03_Test - Source_Files { - Compiler_Features_03_Test.cpp - } -} - -project(Compiler_Features_04_Test) : acetest { - exename = Compiler_Features_04_Test - Source_Files { - Compiler_Features_04_Test.cpp - } -} - -project(Compiler_Features_05_Test) : acetest { - exename = Compiler_Features_05_Test - Source_Files { - Compiler_Features_05_Test.cpp - } -} - -project(Compiler_Features_06_Test) : acetest { - exename = Compiler_Features_06_Test - Source_Files { - Compiler_Features_06_Test.cpp - } -} - -project(Compiler_Features_07_Test) : acetest { - exename = Compiler_Features_07_Test - Source_Files { - Compiler_Features_07_Test.cpp - } -} - -project(Compiler_Features_09_Test) : acetest { - exename = Compiler_Features_09_Test - Source_Files { - Compiler_Features_09_Test.cpp - } -} - -project(Compiler_Features_10_Test) : acetest { - exename = Compiler_Features_10_Test - Source_Files { - Compiler_Features_10_Test.cpp - } -} - -project(Compiler_Features_11_Test) : acetest { - exename = Compiler_Features_11_Test - Source_Files { - Compiler_Features_11_Test.cpp - } -} - -project(Compiler_Features_12_Test) : acetest { - exename = Compiler_Features_12_Test - Source_Files { - Compiler_Features_12_Test.cpp - } -} - -project(Compiler_Features_13_Test) : acetest { - exename = Compiler_Features_13_Test - Source_Files { - Compiler_Features_13_Test.cpp - } -} - -project(Compiler_Features_14_Test) : acetest { - exename = Compiler_Features_14_Test - Source_Files { - Compiler_Features_14_Test.cpp - } -} - -project(Compiler_Features_15_Test) : acetest { - exename = Compiler_Features_15_Test - Source_Files { - Compiler_Features_15_Test.cpp - } -} - -project(Compiler_Features_16_Test) : acetest { - exename = Compiler_Features_16_Test - Source_Files { - Compiler_Features_16_Test.cpp - } - specific(prop:microsoft) { - macros += NOMINMAX // Don't #define min and max in Win32 headers - } -} - -project(Compiler_Features_17_Test) : acetest { - exename = Compiler_Features_17_Test - Source_Files { - Compiler_Features_17_Test.cpp - } - specific(prop:microsoft) { - macros += NOMINMAX // Don't #define min and max in Win32 headers - } -} - -project(Compiler_Features_18_Test) : acetest { - exename = Compiler_Features_18_Test - Source_Files { - Compiler_Features_18_Test.cpp - } -} - -project(Compiler_Features_19_Test) : acetest { - exename = Compiler_Features_19_Test - Source_Files { - Compiler_Features_19_Test.cpp - } -} - -project(Compiler_Features_20_Test) : acelib { - libout = . - sharedname = Compiler_Features_20 - dynamicflags += COMPILER_FEATURES_20_DLL_BUILD_DLL - - Source_Files { - Compiler_Features_20_DLL.cpp - } - Header_Files { - Compiler_Features_20_DLL.h - Compiler_Features_20_DLL_Export.h - } - Resource_Files { - } -} - -project(Compiler_Features_21_Test) : acetest { - exename = Compiler_Features_21_Test - Source_Files { - Compiler_Features_21_Test.cpp - } -} - -project(Compiler_Features_22_Test) : acelib { - libout = . - sharedname = Compiler_Features_22 - dynamicflags += COMPILER_FEATURES_22_DLL_BUILD_DLL - - Source_Files { - Compiler_Features_22_DLL.cpp - } - Header_Files { - Compiler_Features_22_DLL.h - Compiler_Features_22_DLL_Export.h - } - Resource_Files { - } -} - -project(Compiler_Features_23_Test) : acetest { - exename = Compiler_Features_23_Test - Source_Files { - Compiler_Features_23_Test.cpp - } -} - -project(Compiler_Features_24_Test) : acetest { - exename = Compiler_Features_24_Test - Source_Files { - Compiler_Features_24_Test.cpp - } -} - -project(Compiler_Features_25_Test) : acetest { - exename = Compiler_Features_25_Test - Source_Files { - Compiler_Features_25_Test.cpp - } -} - -project(Compiler_Features_26_Test) : acetest { - exename = Compiler_Features_26_Test - Source_Files { - Compiler_Features_26_Test.cpp - } -} - -project(Compiler_Features_27_Test) : acetest { - exename = Compiler_Features_27_Test - Source_Files { - Compiler_Features_27_Test.cpp - } -} - -project(Compiler_Features_28_Test) : acetest { - exename = Compiler_Features_28_Test - Source_Files { - Compiler_Features_28_Test.cpp - } -} - -project(Compiler_Features_29_Test) : acetest { - exename = Compiler_Features_29_Test - Source_Files { - Compiler_Features_29_Test.cpp - } -} - -project(Compiler_Features_31_Test) : acetest { - exename = Compiler_Features_31_Test - Source_Files { - Compiler_Features_31_Test.cpp - } -} - -project(Compiler_Features_32_Test) : acetest { - exename = Compiler_Features_32_Test - Source_Files { - Compiler_Features_32_Test.cpp - } -} - -project(Compiler_Features_33_Test) : acetest { - exename = Compiler_Features_33_Test - Source_Files { - Compiler_Features_33_Test.cpp - } -} - -project(Compiler_Features_34_Test) : acetest { - exename = Compiler_Features_34_Test - Source_Files { - Compiler_Features_34_Test.cpp - } -} - -project(Compiler_Features_35_Test) : acetest { - exename = Compiler_Features_35_Test - Source_Files { - Compiler_Features_35_Test.cpp - } -} - -project(Compiler_Features_36_Test) : acetest { - exename = Compiler_Features_36_Test - Source_Files { - Compiler_Features_36_Test.cpp - } -} - -project(Compiler_Features_37_Test) : acetest { - exename = Compiler_Features_37_Test - Source_Files { - Compiler_Features_37_Test.cpp - } -} - -project(Compiler_Features_38_Test) : acetest { - exename = Compiler_Features_38_Test - Source_Files { - Compiler_Features_38_Test.cpp - } -} - -project(Compiler_Features_39_Test) : acetest { - exename = Compiler_Features_39_Test - Source_Files { - Compiler_Features_39_Test.cpp - } -} - -project(Compiler_Features_40_Test) : acetest { - exename = Compiler_Features_40_Test - Source_Files { - Compiler_Features_40_Test.cpp - } -} - -project(Config Test) : acetest { - avoids += ace_for_tao - exename = Config_Test - Source_Files { - Config_Test.cpp - } - Documentation_Files { - Config_Test.ini - Config_Test_Import_1.ini - } -} - -project(Conn Test) : acetest { - avoids += ace_for_tao - exename = Conn_Test - Source_Files { - Conn_Test.cpp - } -} - -project(Date Time Test) : acetest { - avoids += ace_for_tao - exename = Date_Time_Test - Source_Files { - Date_Time_Test.cpp - } -} - -project(Dev Poll Reactor Test) : acetest { - exename = Dev_Poll_Reactor_Test - Source_Files { - Dev_Poll_Reactor_Test.cpp - } -} - -project(Dev Poll Reactor Echo Test) : acetest { - exename = Dev_Poll_Reactor_Echo_Test - Source_Files { - Dev_Poll_Reactor_Echo_Test.cpp - } -} - -project(Dirent Test) : acetest { - - exename = Dirent_Test - Source_Files { - Dirent_Test.cpp - } -} - -project(DLList Test) : acetest { - avoids += ace_for_tao - exename = DLList_Test - Source_Files { - DLList_Test.cpp - } -} - -project(DLL Test) : acetest, dll_test_parent_lib { - after += DLL_Test_Lib - libs += DLL_Test_Lib - exename = DLL_Test - Source_Files { - DLL_Test.cpp - } -} - -project(Dynamic Test) : acetest { - exename = Dynamic_Test - Source_Files { - Dynamic_Test.cpp - } -} - -project(Enum Interfaces Test) : acetest { - exename = Enum_Interfaces_Test - Source_Files { - Enum_Interfaces_Test.cpp - } -} - -project(Env Value Test) : acetest { - exename = Env_Value_Test - Source_Files { - Env_Value_Test.cpp - } -} - -project(Future Test) : acetest { - avoids += ace_for_tao - exename = Future_Test - Source_Files { - Future_Test.cpp - } -} - -project(Future Set Test) : acetest { - avoids += ace_for_tao - exename = Future_Set_Test - Source_Files { - Future_Set_Test.cpp - } -} - -project(Get Opt Test) : acetest { - exename = Get_Opt_Test - Source_Files { - Get_Opt_Test.cpp - } -} - -project(Handle Set Test) : acetest { - avoids += ace_for_tao - exename = Handle_Set_Test - Source_Files { - Handle_Set_Test.cpp - } -} - -project(High Res Timer Test) : acetest { - avoids += ace_for_tao - exename = High_Res_Timer_Test - Source_Files { - High_Res_Timer_Test.cpp - } -} - -project(NDDS Timer Test) : acetest, nddsexe { - exename = NDDS_Timer_Test - Source_Files { - NDDS_Timer_Test.cpp - } -} - -project(Hash Map Manager Test) : acetest { - exename = Hash_Map_Manager_Test - Source_Files { - Hash_Map_Manager_Test.cpp - } - Template_Files { - STL_algorithm_Test_T.cpp - } -} - -project(Hash Multi Map Manager Test) : acetest { - exename = Hash_Multi_Map_Manager_Test - Source_Files { - Hash_Multi_Map_Manager_Test.cpp - } -} - -project(Hash Map Bucket Iterator Test) : acetest { - exename = Hash_Map_Bucket_Iterator_Test - Source_Files { - Hash_Map_Bucket_Iterator_Test.cpp - } -} - -project(INET Addr Test) : acetest { - exename = INET_Addr_Test - Source_Files { - INET_Addr_Test.cpp - } -} - -project(Integer_Truncate Test) : acetest { - exename = Integer_Truncate_Test - Source_Files { - Integer_Truncate_Test.cpp - } -} - -project(Intrusive Auto Ptr Test) : acetest { - exename = Intrusive_Auto_Ptr_Test - Source_Files { - Intrusive_Auto_Ptr_Test.cpp - } -} - -project(IOStream Test) : acetest { - exename = IOStream_Test - Source_Files { - IOStream_Test.cpp - } -} - -project(Lazy Map Manager Test) : acetest { - exename = Lazy_Map_Manager_Test - Source_Files { - Lazy_Map_Manager_Test.cpp - } -} - -project(Log Msg Test) : acetest { - avoids += ace_for_tao - exename = Log_Msg_Test - Source_Files { - Log_Msg_Test.cpp - } -} - -project(Log Msg Backend Test) : acetest { - avoids += ace_for_tao - exename = Log_Msg_Backend_Test - Source_Files { - Log_Msg_Backend_Test.cpp - } -} - -project(Logging Strategy Test) : acetest { - exename = Logging_Strategy_Test - Source_Files { - Logging_Strategy_Test.cpp - } -} - -project(Malloc Test) : acetest { - avoids += ace_for_tao - exename = Malloc_Test - Source_Files { - Malloc_Test.cpp - } -} - -project(Manual_Event Test) : acetest { - exename = Manual_Event_Test - Source_Files { - Manual_Event_Test.cpp - } -} - -project(Map Test) : acetest { - avoids += ace_for_tao - exename = Map_Test - Source_Files { - Map_Test.cpp - } -} - -project(Map Manager Test) : acetest { - avoids += ace_for_tao - exename = Map_Manager_Test - Source_Files { - Map_Manager_Test.cpp - } -} - -project(Max Default Port Test) : acetest { - exename = Max_Default_Port_Test - Source_Files { - Max_Default_Port_Test.cpp - } -} - -project(MEM Stream Test) : acetest { - avoids += ace_for_tao - exename = MEM_Stream_Test - Source_Files { - MEM_Stream_Test.cpp - } -} - -project(Mem Map Test) : acetest { - avoids += ace_for_tao - exename = Mem_Map_Test - Source_Files { - Mem_Map_Test.cpp - } -} - -project(MM Shared Memory Test) : acetest { - avoids += ace_for_tao - exename = MM_Shared_Memory_Test - Source_Files { - MM_Shared_Memory_Test.cpp - } -} - -project(MT Reactor Timer Test) : acetest { - exename = MT_Reactor_Timer_Test - Source_Files { - MT_Reactor_Timer_Test.cpp - } -} - -project(MT Reactor Upcall Test) : acetest { - exename = MT_Reactor_Upcall_Test - Source_Files { - MT_Reactor_Upcall_Test.cpp - } -} - -project(MT SOCK Test) : acetest { - exename = MT_SOCK_Test - Source_Files { - MT_SOCK_Test.cpp - } -} - -project(Message Block Test) : acetest { - avoids += ace_for_tao - exename = Message_Block_Test - Source_Files { - Message_Block_Test.cpp - } -} - -project(Message Queue Test) : acetest { - avoids += ace_for_tao - exename = Message_Queue_Test - Source_Files { - Message_Queue_Test.cpp - } -} - -project(Monotonic_Manual_Event Test) : acetest { - exename = Monotonic_Manual_Event_Test - Source_Files { - Monotonic_Manual_Event_Test.cpp - } -} - -project(Monotonic_Task Test) : acetest { - avoids += ace_for_tao - exename = Monotonic_Task_Test - Source_Files { - Monotonic_Task_Test.cpp - } -} - -project(Monotonic_Message Queue Test) : acetest { - avoids += ace_for_tao - exename = Monotonic_Message_Queue_Test - Source_Files { - Monotonic_Message_Queue_Test.cpp - } -} - -project(Message Queue Test Ex) : acetest { - avoids += ace_for_tao - exename = Message_Queue_Test_Ex - Source_Files { - Message_Queue_Test_Ex.cpp - } -} - -project(Message Queue Notifications Test) : acetest { - exename = Message_Queue_Notifications_Test - Source_Files { - Message_Queue_Notifications_Test.cpp - } -} - -project(Multicast Test) : acetest { - exename = Multicast_Test - Source_Files { - Multicast_Test.cpp - } -} - -project(Multicast Interfaces Test) : acetest { - exename = Multicast_Interfaces_Test - Source_Files { - Multicast_Interfaces_Test.cpp - } -} - -project(Multihomed INET Addr Test) : acetest { - avoids += ace_for_tao - exename = Multihomed_INET_Addr_Test - Source_Files { - Multihomed_INET_Addr_Test.cpp - } -} - -project(Network_Adapters_Test) : acetest { - avoids += ace_for_tao - exename = Network_Adapters_Test - Source_Files { - Network_Adapters_Test.cpp - } -} - -project(New Fail Test) : acetest { - exename = New_Fail_Test - Source_Files { - New_Fail_Test.cpp - } -} - -project(Notification Queue Unit Test) : acetest { - exename = Notification_Queue_Unit_Test - Source_Files { - Notification_Queue_Unit_Test.cpp - } -} - -project(Notify Performance Test) : acetest { - avoids += ace_for_tao - exename = Notify_Performance_Test - Source_Files { - Notify_Performance_Test.cpp - } -} - -project(Object Manager Test) : acetest { - exename = Object_Manager_Test - Source_Files { - Object_Manager_Test.cpp - } -} - -project(Object Manager Flipping Test) : acetest { - exename = Object_Manager_Flipping_Test - Source_Files { - Object_Manager_Flipping_Test.cpp - } -} - -project(Obstack Test) : acetest { - exename = Obstack_Test - Source_Files { - Obstack_Test.cpp - } -} - -project(OrdMultiSet Test) : acetest { - exename = OrdMultiSet_Test - Source_Files { - OrdMultiSet_Test.cpp - } -} - -project(OS Test) : acetest { - exename = OS_Test - Source_Files { - OS_Test.cpp - } -} - -project(Proactor Scatter Gather Test) : acetest { - avoids += ace_for_tao - exename = Proactor_Scatter_Gather_Test - Source_Files { - Proactor_Scatter_Gather_Test.cpp - } -} - -project(Proactor Test) : acetest { - avoids += ace_for_tao - exename = Proactor_Test - Source_Files { - Proactor_Test.cpp - } -} - -project(Proactor_File Test) : acetest { - avoids += ace_for_tao - exename = Proactor_File_Test - Source_Files { - Proactor_File_Test.cpp - } -} - -project(Proactor Timer Test) : acetest { - avoids += ace_for_tao - exename = Proactor_Timer_Test - Source_Files { - Proactor_Timer_Test.cpp - } -} - -project(Proactor UDP Test) : acetest { - avoids += ace_for_tao - exename = Proactor_UDP_Test - Source_Files { - Proactor_UDP_Test.cpp - } -} - -project(Process Manual Event Test) : acetest { - exename = Process_Manual_Event_Test - Source_Files { - Process_Manual_Event_Test.cpp - } -} - -project(Process Mutex Test) : acetest { - avoids += ace_for_tao - exename = Process_Mutex_Test - Source_Files { - Process_Mutex_Test.cpp - } -} - -project(Process Semaphore Test) : acetest { - avoids += ace_for_tao - exename = Process_Semaphore_Test - Source_Files { - Process_Semaphore_Test.cpp - } -} - -project(Process Strategy Test) : acetest { - avoids += ace_for_tao // Requires ace/File_Lock - exename = Process_Strategy_Test - Source_Files { - Process_Strategy_Test.cpp - } -} - -project(Priority Buffer Test) : acetest { - exename = Priority_Buffer_Test - Source_Files { - Priority_Buffer_Test.cpp - } -} - -project(Dynamic Priority Test) : acetest { - exename = Dynamic_Priority_Test - Source_Files { - Dynamic_Priority_Test.cpp - } -} - -project(Priority Task Test) : acetest { - exename = Priority_Task_Test - Source_Files { - Priority_Task_Test.cpp - } -} - -project(Priority Reactor Test) : acetest { - avoids += ace_for_tao - exename = Priority_Reactor_Test - Source_Files { - Priority_Reactor_Test.cpp - } -} - -project(Process Test) : acetest { - avoids += ace_for_tao - exename = Process_Test - Source_Files { - Process_Test.cpp - } -} - -project(Process Manager Test) : acetest { - avoids += ace_for_tao - exename = Process_Manager_Test - Source_Files { - Process_Manager_Test.cpp - } -} - -project(Pipe Test) : acetest { - exename = Pipe_Test - Source_Files { - Pipe_Test.cpp - } -} - -project(RAW Socket Test) : acetest { - avoids += ace_for_tao - exename = RAW_Socket_Test - Source_Files { - RAW_Socket_Test.cpp - } -} - -project(RB Tree Test) : acetest { - exename = RB_Tree_Test - Source_Files { - RB_Tree_Test.cpp - } -} - -project(Bug_3332_Regression_Test) : acetest { - exename = Bug_3332_Regression_Test - Source_Files { - Bug_3332_Regression_Test.cpp - } -} - -project(Reactors Test) : acetest { - exename = Reactors_Test - Source_Files { - Reactors_Test.cpp - } -} - -project(Reactor Exceptions Test) : acetest { - exename = Reactor_Exceptions_Test - Source_Files { - Reactor_Exceptions_Test.cpp - } -} - -project(Reactor Notify Test) : acetest { - avoids += ace_for_tao - exename = Reactor_Notify_Test - Source_Files { - Reactor_Notify_Test.cpp - } -} - -project(Reactor Notification Queue Test) : acetest { - exename = Reactor_Notification_Queue_Test - Source_Files { - Reactor_Notification_Queue_Test.cpp - } -} - -project(Reactor Dispatch Order Test) : acetest { - exename = Reactor_Dispatch_Order_Test - Source_Files { - Reactor_Dispatch_Order_Test.cpp - } -} - -project(Reactor_Dispatch_Order_Test_Dev_Poll) : acetest { - exename = Reactor_Dispatch_Order_Test_Dev_Poll - Source_Files { - Reactor_Dispatch_Order_Test_Dev_Poll.cpp - } -} - -project(Reactor Fairness Test) : acetest { - exename = Reactor_Fairness_Test - Source_Files { - Reactor_Fairness_Test.cpp - } -} - -project(Reactor Performance Test) : acetest { - avoids += ace_for_tao - exename = Reactor_Performance_Test - Source_Files { - Reactor_Performance_Test.cpp - } -} - -project(Reactor Remove Resume Test) : acetest { - exename = Reactor_Remove_Resume_Test - Source_Files { - Reactor_Remove_Resume_Test.cpp - } -} - -project(Reactor_Remove_Resume_Test_Dev_Poll) : acetest { - exename = Reactor_Remove_Resume_Test_Dev_Poll - Source_Files { - Reactor_Remove_Resume_Test_Dev_Poll.cpp - } -} - -project(Reactor Timer Test) : acetest { - avoids += ace_for_tao - exename = Reactor_Timer_Test - Source_Files { - Reactor_Timer_Test.cpp - } -} - -project(Reader Writer Test) : acetest { - exename = Reader_Writer_Test - Source_Files { - Reader_Writer_Test.cpp - } -} - -project(Recursive Condition Bug Test) : acetest { - exename = Recursive_Condition_Bug_Test - Source_Files { - Recursive_Condition_Bug_Test.cpp - } -} - -project(Recursive Condition Test) : acetest { - exename = Recursive_Condition_Test - Source_Files { - Recursive_Condition_Test.cpp - } -} - -project(Recursive Mutex Test) : acetest { - exename = Recursive_Mutex_Test - Source_Files { - Recursive_Mutex_Test.cpp - } -} - -project(Refcounted Auto Ptr Test) : acetest { - avoids += ace_for_tao - exename = Refcounted_Auto_Ptr_Test - Source_Files { - Refcounted_Auto_Ptr_Test.cpp - } -} - -project(Reverse Lock Test) : acetest { - exename = Reverse_Lock_Test - Source_Files { - Reverse_Lock_Test.cpp - } -} - -project(RW Process Mutex Test) : acetest { - avoids += ace_for_tao - exename = RW_Process_Mutex_Test - Source_Files { - RW_Process_Mutex_Test.cpp - } -} - -project(Semaphore Test) : acetest { - avoids += ace_for_tao - exename = Semaphore_Test - Source_Files { - Semaphore_Test.cpp - } -} - -project(Sendfile Test) : acetest { - exename = Sendfile_Test - Source_Files { - Sendfile_Test.cpp - } -} - -project(Sig Handlers Test) : acetest { - exename = Sig_Handlers_Test - Source_Files { - Sig_Handlers_Test.cpp - } -} - -project(Signal Test) : acetest { - exename = Signal_Test - Source_Files { - Signal_Test.cpp - } -} - -project(Sigset Ops Test) : acetest { - exename = Sigset_Ops_Test - Source_Files { - Sigset_Ops_Test.cpp - } -} - -project(Simple Message Block Test) : acetest { - exename = Simple_Message_Block_Test - Source_Files { - Simple_Message_Block_Test.cpp - } -} - -project(Message Block Large Copy Test) : acetest { - exename = Message_Block_Large_Copy_Test - Source_Files { - Message_Block_Large_Copy_Test.cpp - } -} - -project(Singleton Test) : acetest { - exename = Singleton_Test - Source_Files { - Singleton_Test.cpp - } -} - -project(Singleton Restart Test) : aceexe { - exename = Singleton_Restart_Test - after += Test_Output - libs += Test_Output - Source_Files { - Singleton_Restart_Test.cpp - } - Header_Files { - } - Template_Files { - } - Resource_Files { - } - Svc_Conf_Files { - } -} - -project(SOCK Acceptor_Test) : acetest { - exename = SOCK_Acceptor_Test - Source_Files { - SOCK_Acceptor_Test.cpp - } -} - -project(SOCK Test) : acetest { - exename = SOCK_Test - Source_Files { - SOCK_Test.cpp - } -} - -project(SOCK Dgram Test) : acetest { - exename = SOCK_Dgram_Test - Source_Files { - SOCK_Dgram_Test.cpp - } -} - -project(SOCK Connector Test) : acetest { - exename = SOCK_Connector_Test - Source_Files { - SOCK_Connector_Test.cpp - } -} - -project(SOCK Netlink Test) : acetest { - avoids += ace_for_tao - exename = SOCK_Netlink_Test - Source_Files { - SOCK_Netlink_Test.cpp - } -} - -project(SOCK Send Recv Test) : acetest { - exename = SOCK_Send_Recv_Test - Source_Files { - SOCK_Send_Recv_Test.cpp - } -} - -project(SPIPE Test) : acetest { - avoids += ace_for_tao - exename = SPIPE_Test - Source_Files { - SPIPE_Test.cpp - } -} - -project(SString Test) : acetest { - exename = SString_Test - Source_Files { - SString_Test.cpp - } -} - -project(SV Shared Memory Test) : acetest { - avoids += ace_for_tao - exename = SV_Shared_Memory_Test - Source_Files { - SV_Shared_Memory_Test.cpp - } -} - -project(Svc Handler Test) : acetest { - avoids += ace_for_tao - exename = Svc_Handler_Test - Source_Files { - Svc_Handler_Test.cpp - } -} - -project(Task Test) : acetest { - exename = Task_Test - Source_Files { - Task_Test.cpp - } -} - -project(Task_Group Test) : acetest { - exename = Task_Group_Test - Source_Files { - Task_Group_Test.cpp - } -} - -project(Task_Ex Test) : acetest { - exename = Task_Ex_Test - Source_Files { - Task_Ex_Test.cpp - } -} - -project(Thread Manager Test) : acetest { - exename = Thread_Manager_Test - Source_Files { - Thread_Manager_Test.cpp - } -} - -project(Thread Attrs Test) : acetest { - exename = Thread_Attrs_Test - Source_Files { - Thread_Attrs_Test.cpp - } -} - -project(Thread Mutex Test) : acetest { - exename = Thread_Mutex_Test - Source_Files { - Thread_Mutex_Test.cpp - } -} - -project(Thread Pool Test) : acetest { - exename = Thread_Pool_Test - Source_Files { - Thread_Pool_Test.cpp - } -} - -project(Thread_Timer_Queue_Adapter_Test) : acetest { - exename = Thread_Timer_Queue_Adapter_Test - Source_Files { - Thread_Timer_Queue_Adapter_Test.cpp - } -} - -project(Thread Creation Threshold Test) : acetest { - exename = Thread_Creation_Threshold_Test - Source_Files { - Thread_Creation_Threshold_Test.cpp - } -} - -project(Timeprobe Test) : acetest { - exename = Timeprobe_Test - Source_Files { - Timeprobe_Test.cpp - } -} - -project(Time Service Test) : acetest { - exename = Time_Service_Test - Source_Files { - Time_Service_Test.cpp - } -} - -project(Time Value Test) : acetest { - exename = Time_Value_Test - Source_Files { - Time_Value_Test.cpp - } -} - -project(Timer Queue Test) : acetest { - avoids += ace_for_tao - exename = Timer_Queue_Test - Header_Files { - randomize.h - } - Source_Files { - Timer_Queue_Test.cpp - } -} - -project(Token Strategy Test) : acetest { - exename = Token_Strategy_Test - Source_Files { - Token_Strategy_Test.cpp - } -} - -project(TP Reactor Test) : acetest { - avoids += ace_for_tao - exename = TP_Reactor_Test - Source_Files { - TP_Reactor_Test.cpp - } -} - -project(TSS Test) : acetest { - exename = TSS_Test - Source_Files { - TSS_Test.cpp - } -} - -project(TSS Leak Test) : acetest { - exename = TSS_Leak_Test - Source_Files { - TSS_Leak_Test.cpp - } -} - -project(TSS Static Test) : acetest { - exename = TSS_Static_Test - Source_Files { - TSS_Static_Test.cpp - } -} - -project(Vector Test) : acetest { - exename = Vector_Test - Source_Files { - Vector_Test.cpp - } -} - -project(UPIPE SAP Test) : acetest { - avoids += ace_for_tao - exename = UPIPE_SAP_Test - Source_Files { - UPIPE_SAP_Test.cpp - } -} - -project(Upgradable RW Test) : acetest { - avoids += ace_for_tao - exename = Upgradable_RW_Test - Source_Files { - Upgradable_RW_Test.cpp - } -} - -project(Naming Test) : acetest { - avoids += ace_for_tao - exename = Naming_Test - requires += ace_other - Header_Files { - randomize.h - } - Source_Files { - Naming_Test.cpp - } -} - -project(Thread Pool Reactor Test) : acetest { - exename = Thread_Pool_Reactor_Test - requires += ace_other - - Source_Files { - Thread_Pool_Reactor_Test.cpp - } -} - -project(Thread Pool Reactor Resume Test) : acetest { - exename = Thread_Pool_Reactor_Resume_Test - requires += ace_other - - Source_Files { - Thread_Pool_Reactor_Resume_Test.cpp - } -} - -project(XtMotifReactor Test) : acetest, ace_xtreactor, ace_motif { - exename = XtMotifReactor_Test - - Source_Files { - XtMotifReactor_Test.cpp - } -} - -project(XtAthenaReactor Test) : acetest, ace_xtreactor, ace_athena { - exename = XtAthenaReactor_Test - Source_Files { - XtAthenaReactor_Test.cpp - } -} - -project(XtAthena3dReactor Test) : acetest, ace_xtreactor, ace_athena3d { - exename = XtAthena3dReactor_Test - Source_Files { - XtAthenaReactor_Test.cpp - } -} - -project(FlReactor Test) : acetest, ace_flreactor { - exename = FlReactor_Test - - Source_Files { - FlReactor_Test.cpp - } -} - -project(TkReactor Test) : acetest,ace_tkreactor { - exename = TkReactor_Test - - Source_Files { - TkReactor_Test.cpp - } -} - -project(Codecs Test) : acetest { - avoids += ace_for_tao - exename = Codecs_Test - requires += ace_codecs - - Source_Files { - Codecs_Test.cpp - } -} - -project(Tokens Test) : acetest { - exename = Tokens_Test - requires += ace_token - - Source_Files { - Tokens_Test.cpp - } -} - -project(CDR Array Test) : acetest { - avoids += ace_for_tao - exename = CDR_Array_Test - Source_Files { - CDR_Array_Test.cpp - } -} - -project(Service Config Test) : acetest { - after += Service_Config_DLL - exename = Service_Config_Test - Source_Files { - Service_Config_Test.cpp - } - specific(vxtest) { - libs += Service_Config_DLL - } -} - -project(Framework Component Test) : acetest { - after += Framework_Component_DLL - exename = Framework_Component_Test - Source_Files { - Framework_Component_Test.cpp - } -} - -project(FIFO Test) : acetest { - avoids += ace_for_tao - exename = FIFO_Test - Source_Files { - FIFO_Test.cpp - } - Header_Files { - } -} - -project(WFMO Reactor Test) : acetest { - exename = WFMO_Reactor_Test - Source_Files { - WFMO_Reactor_Test.cpp - } - Header_Files { - } -} - -project(NonBlocking Conn Test) : acetest { - exename = NonBlocking_Conn_Test - Source_Files { - NonBlocking_Conn_Test.cpp - } - Header_Files { - } -} - -project(MT NonBlocking Connect Test) : acetest { - exename = MT_NonBlocking_Connect_Test - Source_Files { - MT_NonBlocking_Connect_Test.cpp - } - Header_Files { - } -} - -project(Reference Counted Event Handler Test) : acetest { - exename = Reference_Counted_Event_Handler_Test - Source_Files { - Reference_Counted_Event_Handler_Test.cpp - } - Header_Files { - } -} - -project(Refcounted_Event_Handler_Test_DevPoll) : acetest { - exename = Refcounted_Event_Handler_Test_DevPoll - Source_Files { - Refcounted_Event_Handler_Test_DevPoll.cpp - } - Header_Files { - } -} - -project(MT Ref Counted Event Handler Test) : acetest { - exename = MT_Reference_Counted_Event_Handler_Test - Source_Files { - MT_Reference_Counted_Event_Handler_Test.cpp - } - Header_Files { - } -} - -project(MT Reference Counted Notify Test) : acetest { - exename = MT_Reference_Counted_Notify_Test - Source_Files { - MT_Reference_Counted_Notify_Test.cpp - } - Header_Files { - } -} - -project(Timer Cancellation Test) : acetest { - exename = Timer_Cancellation_Test - Source_Files { - Timer_Cancellation_Test.cpp - } - Header_Files { - } -} - -project(Timer Queue Reference Counting Test) : acetest { - exename = Timer_Queue_Reference_Counting_Test - Source_Files { - Timer_Queue_Reference_Counting_Test.cpp - } - Header_Files { - } -} - -project(Reactor Registration Test) : acetest { - exename = Reactor_Registration_Test - Source_Files { - Reactor_Registration_Test.cpp - } - Header_Files { - } -} - -project(UUID_Test) : acetest { - avoids += ace_for_tao - exename = UUID_Test - requires += ace_uuid - Source_Files { - UUID_Test.cpp - } -} - -project(Unbounded Set Test) : acetest { - exename = Unbounded_Set_Test - Source_Files { - Unbounded_Set_Test.cpp - } -} - -project(INET Addr Test IPV6) : acetest { - exename = INET_Addr_Test_IPV6 - Source_Files { - INET_Addr_Test_IPV6.cpp - } -} - -project(Max Default Port Test IPV6) : acetest { - exename = Max_Default_Port_Test_IPV6 - Source_Files { - Max_Default_Port_Test_IPV6.cpp - } -} - -project(Multicast Test IPV6) : acetest { - exename = Multicast_Test_IPV6 - Source_Files { - Multicast_Test_IPV6.cpp - } -} - -project(Multihomed INET Addr Test IPV6) : acetest { - avoids += ace_for_tao - exename = Multihomed_INET_Addr_Test_IPV6 - Source_Files { - Multihomed_INET_Addr_Test_IPV6.cpp - } -} - -project(Proactor Test IPV6) : acetest { - avoids += ace_for_tao - exename = Proactor_Test_IPV6 - Source_Files { - Proactor_Test_IPV6.cpp - } -} - -project(SOCK Send Recv Test IPV6) : acetest { - exename = SOCK_Send_Recv_Test_IPV6 - Source_Files { - SOCK_Send_Recv_Test_IPV6.cpp - } -} - -project(SOCK Test IPv6) : acetest { - exename = SOCK_Test_IPv6 - Source_Files { - SOCK_Test_IPv6.cpp - } -} - -project(SOCK_Dgram_Bcast_Test) : acetest { - avoids += ace_for_tao - exename = SOCK_Dgram_Bcast_Test - Source_Files { - SOCK_Dgram_Bcast_Test.cpp - } -} - -project(SOCK_SEQPACK_SCTP_Test) : acetest { - avoids += ace_for_tao - exename = SOCK_SEQPACK_SCTP_Test - Source_Files { - SOCK_SEQPACK_SCTP_Test.cpp - } -} - -project(QtReactor Test) : acetest, ace_qtreactor { - exename = QtReactor_Test - MOC_Files { - QtReactor_Test.h - } - Source_Files { - QtReactor_Test_moc.cpp - QtReactor_Test.cpp - } -} - -project(Based Pointer Test) : acetest { - avoids += ace_for_tao - after += Based_Pointer_Test_Lib - exename = Based_Pointer_Test - Source_Files { - Based_Pointer_Test.cpp - } - specific(vxtest) { - libs += Based_Pointer_Test_Lib - } -} - -project(Library Unload): unload_libace { - exename = UnloadLibACE - staticflags += ACE_AS_STATIC_LIBS - Source_Files { - Unload_libACE.cpp - } - Resource_Files { - } -} - -project(Bug_2659_Regression_Test) : acetest { - exename = Bug_2659_Regression_Test - Source_Files { - Bug_2659_Regression_Test.cpp - } -} - -project(Bug_2609_Regression_Test) : acetest { - avoids += ace_for_tao - exename = Bug_2609_Regression_Test - Source_Files { - Bug_2609_Regression_Test.cpp - } -} - -project(Bug_2610_Regression_Test) : acetest { - avoids += ace_for_tao - exename = Bug_2610_Regression_Test - Source_Files { - Bug_2610_Regression_Test.cpp - } -} - -project(Process_Env_Test) : acetest { - exename = Process_Env_Test - Source_Files { - Process_Env_Test.cpp - } -} - -project(Log_Thread_Inheritance_Test) : acetest { - exename = Log_Thread_Inheritance_Test - Source_Files { - Log_Thread_Inheritance_Test.cpp - } -} - -project(Wild_Match_Test) : acetest { - exename = Wild_Match_Test - Source_Files { - Wild_Match_Test.cpp - } -} - -project(Service Config Stream DLL) : acelib { - libout = . - sharedname = Service_Config_Stream_DLL - dynamicflags += SERVICE_CONFIG_STREAM_DLL_BUILD_DLL - - Source_Files { - Service_Config_Stream_DLL.cpp - } - Header_Files { - Service_Config_Stream_DLL.h - Service_Config_Stream_DLL_Export.h - } - Resource_Files { - } -} - -project(Service Config Stream Test) : acetest { - after += Service_Config_Stream_DLL - exename = Service_Config_Stream_Test - Source_Files { - Service_Config_Stream_Test.cpp - } - specific(vxtest) { - libs += Service_Config_Stream_DLL - } -} - -project(Bug_3334_Regression_Test) : acetest { - after += Service_Config_Stream_DLL - exename = Bug_3334_Regression_Test - Source_Files { - Bug_3334_Regression_Test.cpp - } -} - -project(Bug_3912_Regression_Test) : acetest { - after += Service_Config_Stream_DLL - exename = Bug_3912_Regression_Test - Source_Files { - Bug_3912_Regression_Test.cpp - } -} - -project(Missing_Svc_Conf_Test) : acetest { - exename = Missing_Svc_Conf_Test - Source_Files { - Missing_Svc_Conf_Test.cpp - } -} - -project(UNIX Addr Test) : acetest { - avoids += ace_for_tao - exename = UNIX_Addr_Test - Source_Files { - UNIX_Addr_Test.cpp - } -}