f



[ace-bugs] Re: [ace-users] Use ACE to get binary http file

Hi,

        Thanks for using the PRF.

>>  ACE VERSION: 5.4
>>      HOST MACHINE and OPERATING SYSTEM:
>>          Win32
>> 
>>     TARGET MACHINE and OPERATING SYSTEM, if different from HOST:
>> 
>>      COMPILER NAME AND VERSION (AND PATCHLEVEL):
>>          VC++ 6.0
>> 
>> 
>> I use ACE to get binary file via http. Found it cannot successfully
>> download the binary file compared to the text file. See the following
>> codes and the comments in line.

There are some bugs in your code, as shown below.

>> Thanks
>> 
>> #include "test_config.h"
>> #include "ace/OS_NS_string.h"
>> #include "ace/INET_Addr.h"
>> #include "ace/SOCK_Connector.h"
>> #include "ace/SOCK_Stream.h"
>> #include "ace/OS_NS_sys_utsname.h"
>> #include "ace/OS_NS_netdb.h"
>> 
>> #include "ace\Event_Handler.h"
>> #include "ace\reactor.h"
>> #include "ace\select_reactor.h"
>> 
>> class MyEventHandler :public  ACE_Event_Handler
>> {
>> 
>> public:
>>  ACE_INET_Addr                 addr;
>>  ACE_SOCK_Connector    con;
>>  ACE_SOCK_Stream               sock;
>>  ACE_Time_Value                nonblock;
>>        bool                            bConnected;
>> 
>>        MyEventHandler() :nonblock (0, 0), bConnected(false)
>>   {
>>   }
>> 
>>  virtual ~MyEventHandler (void)
>>  {
>>  }
>> 
>>        int open()
>>        {
>>                int status;
>>                addr.set(80, "www.href.com");
>>                status = con.connect (sock, addr, &nonblock);
>>                if (status == 0 || (status == -1 && errno != EWOULDBLOCK))
>>                {
>>                        return -1;
>>                }
>>                return 0;
>>        }
>> 
>>  virtual ACE_HANDLE get_handle (void) const
>>  {
>>          return sock.get_handle();
>>  }
>> 
>>  virtual int handle_input (ACE_HANDLE fd = ACE_INVALID_HANDLE)
>>  {
>>          printf("CALLBACK:onreceive\n\r");
>> 
>>        char buf[8000+1];
>>        int i = sock.recv(buf, 1000);
>>        buf[i] = 0;
>> 
>>        printf("recv:%d\n\r", i);
>>        printf(buf);

You shouldn't be writing this if condition like this since the only
reason you should ever call ACE_OS::last_error () is if recv() returns
-1...  Please see Chapter 3 and 4 of C++NPv2
<http://www.dearbook.com.cn/Book/ViewBook.aspx?pno=TS0013040> for more
info.

>>    if (i == 0 || ACE_OS::last_error () != EWOULDBLOCK)
>>    {
>>          printf("CALLBACK:onclose\n\r");;
>>      this->reactor ()->remove_handler(this, ACE_Event_Handler::ALL_EVENTS_MASK);
>>      return -1;
>>    }
>> 
>>          return 0;
>>  }
>> 
>>  virtual int handle_output (ACE_HANDLE fd = ACE_INVALID_HANDLE)
>>  {
>>          if (!bConnected) //mask & CONNECT_MASK)
>>          {
>>                  printf("CALLBACK:onconnect\n\r");
>>                  bConnected = true;
>>          }
>> 
>>          {
>>            printf("CALLBACK:onsend\n\r");
>> 
>>           ///  char *str = "GET / HTTP/1.1\r\nHost:www.href.com\r\n\r\n";
>> ///uncomment this line to download html file
>> 
>>           char *str = "GET /href.png HTTP/1.1\r\nHost:www.href.com\r\n\r\n";

BTW, you should be using send_n() here, not send()...

>>                sock.send(str, strlen(str));
>> ///download binary image file
>>          }
>> 
>>          return -1;
>>  }
>> 
>>  virtual int handle_close (ACE_HANDLE handle,
>>                            ACE_Reactor_Mask close_mask)
>>  {
>>            printf("CALLBACK:handle_close\n\r");		
>>          return 0;
>>  }
>> 
>>  virtual int handle_signal (int signum, siginfo_t * = 0, ucontext_t * = 0)
>>  {
>>            printf("CALLBACK:handle_signaln\r");
>>          return 0;
>>  }
>> 
>>  virtual int handle_exception (ACE_HANDLE fd = ACE_INVALID_HANDLE)
>>  {
>>            printf("CALLBACK:OOB\r");
>>                return -1;
>>  }
>> };
>> 
>> int testreactor()
>> {
>>        ACE_Select_Reactor selreactor;
>>        ACE_Reactor     reactor(&selreactor);
>> ////if I use select reactor, the recv_n will in an infinite loop, my
>> app is hang!

I don't see any use of recv_n() in your program, just recv().

>> ///It won't happen when the file is html. Only then the file is binary.
>>        //ACE_Reactor reactor; 
>> ///uncommented this to use win32 reactor, still has problem, recv
>> several bytes of the bianry file.

There are a bunch of examples of how to use ACE to transfer
binary/text files.  Please see Chapter 3 of C++NPv1
<http://www.dearbook.com.cn/Book/ViewBook.aspx?pno=TS0020664> for a
concrete example.

Take care,

        Doug

>>        MyEventHandler handler;
>> 
>>        handler.open();
>>        reactor.register_handler(&handler, ACE_Event_Handler::ALL_EVENTS_MASK);
>> 
>>        return reactor.run_reactor_event_loop();
>> }
>> 
>> int
>> run_main (int, ACE_TCHAR *[])
>> {
>>  int status = 0;
>>  testreactor();
>>  return status;
>> }
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> -- 
>> Regards
>> Sheng
>> 































































































































-- 
Dr. Douglas C. Schmidt, Professor           TEL: (615) 343-8197
Electrical Engineering and Computer Science FAX: (615) 343-7440
Vanderbilt University                       WEB: www.cs.wustl.edu/~schmidt/
Nashville, TN 37203                         NET: d.schmidt@vanderbilt.edu

0
Douglas
8/6/2004 2:13:00 AM
comp.soft-sys.ace 20326 articles. 1 followers. marlow.andrew (167) is leader. Post Follow

0 Replies
905 Views

Similar Articles

[PageSpeed] 59

Reply:

Similar Artilces:

[ace-users] Use ACE to get binary http file
Hi, ACE VERSION: 5.4 HOST MACHINE and OPERATING SYSTEM: Win32 TARGET MACHINE and OPERATING SYSTEM, if different from HOST: COMPILER NAME AND VERSION (AND PATCHLEVEL): VC++ 6.0 I use ACE to get binary file via http. Found it cannot successfully download the binary file compared to the text file. See the following codes and the comments in line. Thanks #include "test_config.h" #include "ace/OS_NS_string.h" #include "ace/INET_Addr.h" #include "ace/SOCK_Connector.h" #include "ace/SOCK_Stream.h" #include "ace/OS_NS_sys_utsname.h" #include "ace/OS_NS_netdb.h" #include "ace\Event_Handler.h" #include "ace\reactor.h" #include "ace\select_reactor.h" class MyEventHandler :public ACE_Event_Handler { public: ACE_INET_Addr addr; ACE_SOCK_Connector con; ACE_SOCK_Stream sock; ACE_Time_Value nonblock; bool bConnected; MyEventHandler() :nonblock (0, 0), bConnected(false) { } virtual ~MyEventHandler (void) { } int open() { int status; addr.set(80, "www.href.com"); status = con.connect (sock, addr, &nonblock); if (status == 0 || (status == -1 && errno != EWOULDBLOCK)) { ...

[ace-bugs] Re: [ace-users] how to transmit file in ACE
Hi, >> I want to write the program whitch want to transmit file with >> ACE, how can I do it? which method and related classs information I >> should use? To ensure that we have proper version/platform/compiler information, please make sure you fill out the appropriate problem report form (PRF), which is in $ACE_ROOT/PROBLEM-REPORT-FORM $TAO_ROOT/PROBLEM-REPORT-FORM or in $ACE_ROOT/BUG-REPORT-FORM $TAO_ROOT/BUG-REPORT-FORM in older versions of ACE+TAO. Make sure to include this information when asking any questions about ACE+TAO since otherwise we have to "guess" what version/platform/compiler/options you've using, which is error-prone and slows down our responsiveness. >> My project using the Proactor model to communiction between >> client and server. and I can't confirm that if I use >> ACE_Asynch_Transmit_File to transmit the files from all of the >> clients to the server, that the performance will be the bottleneck >> of the system. also, I don't know how to use >> ACE_Asynch_Transmit_File. any body can give any advice will be >> great approciate! There are examples of using the Proactor and ACE_Asynch_Transmit_File in ACE_ROOT/examples/Reactor/Proactor/ Take care, Doug -- Dr. Douglas C. Schmidt Professor and Associate Chair Electrical Engineering and Computer Science TEL: (615) 343-8197 Institute for ...

[ace-bugs] Re: [ace-users] How to use the IPV6 in ACE?
Hi, Thanks for using the PRF. >> TAO VERSION: 1.3 >> ACE VERSION: 5.3 You definitely want to upgrade to ACE 5.4.1, which you can obtain from the "usual place" at http://deuce.doc.wustl.edu/Download.html >> HOST MACHINE and OPERATING SYSTEM: >> Intel P4/Windows 2000 Server SP4 >> SUN Ultra/ Solaris 8 >> >> TARGET MACHINE and OPERATING SYSTEM, if different from HOST: >> COMPILER NAME AND VERSION (AND PATCHLEVEL): >> VC7.1 >> SUN Workshop Forte C++ 6 update 1 >> >> AREA/CLASS/EXAMPLE AFFECTED: >> N/A >> >> DOES THE PROBLEM AFFECT: >> COMPILATION? >> No >> LINKING? >> No >> EXECUTION? >> No >> >> SYNOPSIS: >> I want to know how to use IPv6 in ACE/TAO and where i can find the docs and examples. Please see ACE_ROOT/tests/INET_Addr_Test_IPV6.cpp ACE_ROOT/tests/Max_Default_Port_Test_IPV6.cpp ACE_ROOT/tests/Multicast_Test_IPV6.cpp ACE_ROOT/tests/Multihomed_INET_Addr_Test_IPV6.cpp ACE_ROOT/tests/Proactor_Test_IPV6.cpp ACE_ROOT/tests/SOCK_Send_Recv_Test_IPV6.cpp for a number of examples. Steve, does APG have any documentation for the IPV6 stuff? Thanks, Doug -- Dr. Douglas C. Schmidt, Professor TEL: (615) 343-8197 Electrical Engineering and Computer Science F...

[ace-bugs] Re: [ace-users] Using ACE with COM
Hi Zvika, Thanks for using the PRF. >> ACE VERSION: 5.4.2 >> >> HOST MACHINE and OPERATING SYSTEM: >> Windos XP Pro, winsock2 >> >> TARGET MACHINE and OPERATING SYSTEM, if different from HOST: >> COMPILER NAME AND VERSION (AND PATCHLEVEL): >> MSVC6 SP5 >> >> CONTENTS OF $ACE_ROOT/ace/config.h [if you use a link to a platform- >> specific file, simply state which one]: >> #include "config-win32.h" >> >> CONTENTS OF $ACE_ROOT/include/makeinclude/platform_macros.GNU (unless >> this isn't used in this case, e.g., with Microsoft Visual C++): >> >> AREA/CLASS/EXAMPLE AFFECTED: >> [What example failed? What module failed to compile?] >> >> DOES THE PROBLEM AFFECT: >> COMPILATION? NO >> LINKING? NO >> On Unix systems, did you run make realclean first? >> EXECUTION? YES >> OTHER (please specify)? >> [Please indicate whether ACE, your application, or both are affected.] >> >> SYNOPSIS: >> We are working on a big project that involves ACE. We need to interface the >> part that uses ACE to other Windows based applications >> that need to remain unaware of the underlying implementation. The obvious >> method is to use COM,...

[ace-bugs] Re: [ace-users] How to Use IPv6 in ACE?
Hi, Thanks for using the PRF. >> ACE VERSION: 5.4.1 >> >> HOST MACHINE and OPERATING SYSTEM: >> SUN Solaris 8 >> >> TARGET MACHINE and OPERATING SYSTEM, if different from HOST: >> COMPILER NAME AND VERSION (AND PATCHLEVEL): >> SUN Forte6 C++ UP1 >> >> CONTENTS OF $ACE_ROOT/ace/config.h [if you use a link to a platform- >> specific file, simply state which one]: >> config-sunos5.8.h >> >> CONTENTS OF $ACE_ROOT/include/makeinclude/platform_macros.GNU (unless >> this isn't used in this case, e.g., with Microsoft Visual C++): >> platform_sunos5_sunc++.GNU >> >> AREA/CLASS/EXAMPLE AFFECTED: >> NO >> >> DOES THE PROBLEM AFFECT: >> COMPILATION? >> NO >> LINKING? >> NO >> EXECUTION? >> NO >> OTHER (please specify)? >> NO >> >> SYNOPSIS: >> I want to know how to use IPv6 in ACE-TAO, and where i can find the documents and examples. Please see http://groups.yahoo.com/group/ace-users/message/38643 for a partial answer to your question. In addition, check out $ACE_ROOT/tests/INET_Addr_Test_IPV6.cpp $ACE_ROOT/tests/Max_Default_Port_Test_IPV6.cpp $ACE_ROOT/te...

[ace-bugs] Re: [ace-users] ACE
Hi, Thanks for using the PRF. >> ACE VERSION: 5.4.1 >> >> HP Server and HP-UX 11.1 >> >> aCC: HP ANSI C++ B3910B A.03.37 >> >> CONTENTS OF $ACE_ROOT/ace/config.h : config-hpux-11.00.h >> >> CONTENTS OF $ACE_ROOT/include/makeinclude/platform_macros.GNU : >> platorm_hpux_aCC.GNU >> >> AREA/CLASS/EXAMPLE AFFECTED: >> >> $ACE_ROOT/ace - Compiled successfully but >> >> $ACE_ROOT/ - failed to compile as shown below >> >> Installing gperf -> /home/umitd/Projects/Trophy/lib/ACE_wrappers/bin >> Installing gperf -> /home/umitd/Projects/Trophy/lib/ACE_wrappers/bin >> gmake[6]: Leaving directory >> `/home/umitd/Projects/Trophy/lib/ACE_wrappers/apps/g >> perf/src' >> cd tests && gmake -f Makefile all >> gmake[6]: Entering directory >> `/home/umitd/Projects/Trophy/lib/ACE_wrappers/apps/ >> gperf/tests' >> >> Makefile: >> /home/umitd/Projects/Trophy/lib/ACE_wrappers/apps/gperf/tests/Makefile >> >> aCC -AA +W930 +W302 +DAportable -g -DACE_HAS_THREADS -D_REENTRANT >> -D_RWSTD_MULTI >> _THREAD -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE -DHPUX_VERS=1111 >> -DACE_LACKS_PR >> AGMA_ONCE -I/home/umitd/Projects/Trophy/lib/ACE_wrappers >> -DACE_HAS_EXCEPTIONS >> -D__ACE_INLINE__ -c -o .obj/test.o te...

[ace-users] Re: [ace-bugs] ACE Licensing Issue: ace/CLASSIX
Hi Michael, Thanks for using the PRF. >> ACE VERSION: 5.4 >> >> HOST MACHINE and OPERATING SYSTEM: >> HP rp8400 HP-UX 11iv1 >> >> TARGET MACHINE and OPERATING SYSTEM, if different from HOST: >> COMPILER NAME AND VERSION (AND PATCHLEVEL): >> aCC >> >> CONTENTS OF $ACE_ROOT/ace/config.h: >> >> CONTENTS OF $ACE_ROOT/include/makeinclude/platform_macros.GNU >> (unless >> this isn't used in this case, e.g., with Microsoft Visual C++): >> >> AREA/CLASS/EXAMPLE AFFECTED: >> ace/CLASSIX >> >> DOES THE PROBLEM AFFECT: >> OTHER? (Licensing) >> >> SYNOPSIS: >> Nearly all the files in ace/CLASSIX have a copyright in them >> or a signature from Nokia. Our lawyers are going nuts. >> Example: >> CLASSIX_Dgram_Mcast.cpp: >> // Copyright 1998 Nokia Telecommunications >> >> CLASSIX_OS.h >> // = AUTHOR(S) >> // Nokia Telecommunications >> >> DESCRIPTION: >> How does this affect the ace license? >> >> REPEAT BY: >> >> SAMPLE FIX/WORKAROUND: >> Get the copyrights out of the code, or put special permissions >> into the code. O...

[ace-bugs] Re: [ace-users] How to Use IPv6 in ACE? #2
Please stop reposting this question. Bala and I have already answered it the past several days. Check out http://groups.yahoo.com/group/ace-bugs/message/4421 for my answer. Thanks, Doug >> ACE VERSION: 5.4.1 >> >> HOST MACHINE and OPERATING SYSTEM: >> SUN Solaris 8 >> >> TARGET MACHINE and OPERATING SYSTEM, if different from HOST: >> COMPILER NAME AND VERSION (AND PATCHLEVEL): >> SUN Forte6 C++ UP1 >> >> CONTENTS OF $ACE_ROOT/ace/config.h [if you use a link to a platform- >> specific file, simply state which one]: >> config-sunos5.8.h >> >> CONTENTS OF $ACE_ROOT/include/makeinclude/platform_macros.GNU (unless >> this isn't used in this case, e.g., with Microsoft Visual C++): >> platform_sunos5_sunc++.GNU >> >> AREA/CLASS/EXAMPLE AFFECTED: >> NO >> >> DOES THE PROBLEM AFFECT: >> COMPILATION? >> NO >> LINKING? >> NO >> EXECUTION? >> NO >> OTHER (please specify)? >> NO >> >> SYNOPSIS: >> I want to know how to use IPv6 in ACE-TAO, and where i can find the documents and examples. >> >> Thanks! >> ...

[ace-bugs] Re: [ace-users] Has anyone mixed boost.org libraries with ACE using the standard ACE Makefile?
Hi, There is now also a boost_unit_test base project, maybe we should rename that just to boost add the libs for the other compilers. With MPC you can then generate makefiles supporting boost. The boost_unit_test will be in the upcoming x.4.3 release. Regards, Johnny Willemsen Remedy IT Leeghwaterstraat 25 2811 DT Reeuwijk The Netherlands www.theaceorb.nl / www.remedy.nl "Xue Yong Zhi" <seclib@seclib.com> wrote in message news:<51693.66.240.11.2.1100214499.squirrel@www.seclib.com>... > I recommend you to read a few basic documents about using shared library > first, becuase I can see from your post that you do no have a > clear idea on Makefile, shared libary etc. > > ACE, boost and stl are all provided as shared/static library, > and the purpose of Makefile is to tell the compiler how to > compile/link your source code, and link with the shared libraries. > > I recommend you to try MPC to generate Makefile, instead of write > Makefile directly. MPC is very well documented by: > http://download.ociweb.com/TAO-1.3a/TAO1.3aMakeProjectCreator.pdf > > You .mpc file should look like this(you need to modify it to fit your > environment): > > project : acelib { > > includes += $(SRC_ROOT)/boost/include > libpaths += $(SRC_ROOT)/boost/lib > > specific(borland, bmake, nmake, em3, vc6, vc7, vc71) { > //Libraries for Borland and Microsoft co...

Re: [ace-bugs] RE: [ace-users] Linux LFS (Large File Support) and ACE
Hi, >> I guess I'm a bit confused. From what I've read on the net, it >> seems that if I define -D_FILE_OFFSET_BITS=64 (as reported by >> getconf LFS_CFLAGS on linux), and my code uses posix types >> religiously, then my code should become large-file capable "just >> like that." Based on your email, if ACE is type-safe, then it >> should magically support large files given this flag. (getconf >> LFS_LDFLAGS returns nothing on linux). >> >> Yet, you also mention adding interfaces ACE_OS and ACE_File. What >> would be the motivation of those interfaces if the above is true? >> >> I suppose the answer is "to support large files on systems that do >> not support LFS API's posixely" ? I think the main issue here is that different operating systems provide different ways to handle "large" files. For example, some operating systems have you pass special compile flags (e.g. -D_FILE_OFFSET_BITS=64) and/or use special functions (e.g., the *64() functions provided by AIX and HP/UX). As far as I know, there is no POSIX "standard" way to handle this. There's no current support in ACE for the *64() functions, which is what's provided by that *.zip file whose URL I sent you. It may be easier, however, just to try and recompile ACE and your apps using the -D_FILE_OFFSET_BITS=64 to see if that works first. If not, pleas...

[ace-bugs] Re: [ace-users] How to use c++ native exception handling instead of ACE's while building ACE+TAO
Hi, To ensure that we have proper version/platform/compiler information, please make sure you fill out the appropriate problem report form (PRF), which is in $ACE_ROOT/PROBLEM-REPORT-FORM $TAO_ROOT/PROBLEM-REPORT-FORM or in $ACE_ROOT/BUG-REPORT-FORM $TAO_ROOT/BUG-REPORT-FORM in older versions of ACE+TAO. Make sure to include this information when asking any questions about ACE+TAO since otherwise we have to "guess" what version/platform/compiler/options you've using, which is error-prone and slows down our responsiveness. > I know we can set exceptions = 1 or 0 in platform_macros.GNU > to use ACE's exception handling or C++'s native exception handling. > > But I am still not clear on which value should I set exceptions to if > I want to use only the C++'s native exception handling support. Then just set it to 1 which is the default. Regards, Johnny Willemsen Remedy IT Postbus 101 2650 AC Berkel en Rodenrijs The Netherlands www.theaceorb.nl / www.remedy.nl ------=_Part_4854_4331443.1142846841468 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline ACE VERSION: 5.5 HOST MACHINE and OPERATING SYSTEM: *Sparc, Solaris 10 * If on Windows based OS's, which version of WINSOCK do you use?: TARGET MACHINE and OPERATING SYSTEM, if different from HOST: COMPILER NAME AND VERSION (AN...

[ace-bugs] Re: [ace-users] IPC across network using ACE
Hi Sarvo, >> Iam a new user of ACE framework. I understand that ACE >> addresses concurrent network programming challenges. I >> also understand that ACE provides a set of wrapper >> classes (IPC_SAP) which encapsulates all the IPC >> mechanisms provided by OS. >> My queries are: >> 1. Does ACE provide mechanism to use IPCs like Shared >> Memory and FIFO across the PC connected in a network. No, because shared memory and FIFO's don't work across networks and ACE largely provides "wrapper facades," as described in C++NPv1 <www.cs.wustl.edu/~schmidt/ACE/book1/>. >> 2. If yes then how can we configure these IPCs to work across the >> network. You can use the ACE_SOCK* classes and/or The ACE ORB (TAO) to communicate across networks. Take care, Doug -- Dr. Douglas C. Schmidt, Professor TEL: (615) 343-8197 Electrical Engineering and Computer Science FAX: (615) 343-7440 Vanderbilt University WEB: www.cs.wustl.edu/~schmidt/ Nashville, TN 37203 NET: d.schmidt@vanderbilt.edu ...

[ace-bugs] Re: [ace-users] ACE
Hi Srujan, >> I am using ACE 5.1 on Solaris. How can I find out that IPv6 is >> enabled in my build. I couldnt use the ACE::ipv6_enabled() >> function. Also, in ACE5.1 how can I detertmine at run time that >> IPv6 has been enabled on the machine. ACE 5.1 is ANCIENT. Please upgrade to a more recent version of ACE, e.g., ACE 5.4.4 <deuce.doc.wustl.edu/Download.html> or one of the commercially supported versions, as discussed at http://www.cs.wustl.edu/~schmidt/commercial-support.html Thanks, Doug -- Dr. Douglas C. Schmidt Professor and Associate Chair Electrical Engineering and Computer Science TEL: (615) 343-8197 Institute for Software Integrated Systems WEB: www.dre.vanderbilt.edu/~schmidt Vanderbilt University, Nashville TN, 37203 NET: d.schmidt@vanderbilt.edu ...

[ace-bugs] Re: [ace-users] ACE-warnings
Hi, Thanks for using the PRF form. It seems you are using compiler options we are not using in our builds. What I have done is setup a small ACE build with some extra warnings enabled, see http://www.dre.vanderbilt.edu/scoreboard/integrated.html for the SuSE_92_GCC3.3.4_x86_64_extended_warnings build. It seems some work can be done, if you have patches to improve things, send them to the mailing list (make then bases on 5.4.2, 5.4 is almost a year old) and we can see if we can apply them. Regards, Johnny Willemsen Remedy IT Leeghwaterstraat 25 2811 DT Reeuwijk The Netherlands www.theaceorb.nl / www.remedy.nl "Sponsel Carsten (ext)" <carsten.sponsel@erln.gepas.de> wrote in message news:<0FD43CFFD4EB254AB6D0D172007FF6010396C653@erlh907a.med.siemens.de>... > ACE VERSION: 5.4 > > HOST MACHINE and OPERATING SYSTEM: > AMD Opteron with RedHawk Linux 2.2 (based on Kernel 2.6.3) > > TARGET MACHINE and OPERATING SYSTEM: same > > COMPILER NAME AND VERSION (AND PATCHLEVEL): gcc (GCC) 3.2.3 20030502 (Red > Hat Linux 3.2.3-20) > > CONTENTS OF $ACE_ROOT/ace/config.h: > > CONTENTS OF $ACE_ROOT/include/makeinclude/platform_macros.GNU (unless > this isn't used in this case, e.g., with Microsoft Visual C++): > > AREA/CLASS/EXAMPLE AFFECTED: > COMPILATION > > SYNOPSIS: > Compiler-Warnings > > DESCRIPTION: > > I'm astonish...

[ace-bugs] Re: [ace-users] Contribution to ACE
Hi Ishay, >> I will submit it soon. Great, thanks. >> The solution is implemented as part of my company internal framework. It is >> not written with the coding style of ace. >> >> Should I do some kind of adjustment before submitting it to the group? Yes - please see http://www.cs.wustl.edu/~schmidt/ACE_wrappers/docs/ACE-guidelines.html for instructions on how to conform to the ACE programming guidelines. >> Should I rewrite it so it will compile with the ace library? Yes, please try to get things working "out of the box" so that we can integrate it easily. Also, please add a "one button" test following the style of the various tests in $ACE_ROOT/tests/*_Test.cpp so that we can ensure that your changes work properly. >> Also, In order to integrate it as part of ace frameworks it will >> need some changes in the implementation. Are you referring to changes in the ACE implementation or to your framework's implementation? Thanks, Doug -- Dr. Douglas C. Schmidt Professor and Associate Chair Electrical Engineering and Computer Science TEL: (615) 343-8197 Institute for Software Integrated Systems WEB: www.dre.vanderbilt.edu/~schmidt Vanderbilt University, Nashville TN, 37203 NET: d.schmidt@vanderbilt.edu ...

[ace-bugs] Re: [ace-users] DCLP and ACE
Hi Yongwei, >> Has anyone here read the DDJ article "C++ and the Perils of >> Double-Checked Locking"? It is available at this URL: >> >> http://www.ddj.com/documents/ddj0408l/ >> >> Regretfully registration is needed to read it. >> >> In brief, Scott Meyers and Andrei Alexandrescu talked about why DCLP is >> unsafe, esp. on multiprocessor environments. The most difficult part >> seems to be the Alpha Reordering problem, described at >> >> http://www.cs.umd.edu/~pugh/java/memoryModel/AlphaReordering.html >> >> And thus DCLP could be impossible, unless some memory barrier is >> inserted in every read! The topic of memory barriers for the Alpha and ACE_Singleton is discussed in the DCLP description in POSA2 <www.cs.wustl.edu/~schmidt/POSA/>. If you'd like to contribute portable patches that add this capability to $ACE_ROOT/ace/Singleton.cpp that would be great. We (i.e., the DOC groups at WU/VU/UCI) don't have a Alpha platform in our possession, so if you would like to provide one that we could use to run regression tests on our auto-build virtual scoreboard <www.dre.vanderbilt.edu/scoreboard/> that would be great. Thanks, Doug -- Dr. Douglas C. Schmidt, Professor TEL: (615) 343-8197 Electrical Engineering and Computer Science FAX: (615) 343-7440 Vanderbilt University WEB: ww...

[ace-bugs] Re: [ace-users] Moving to ACE?
Hi Marcelo, Thanks for your email. BTW, to ensure that we have proper version/platform/compiler information, please make sure you fill out the appropriate problem report form (PRF), which is in $ACE_ROOT/PROBLEM-REPORT-FORM $TAO_ROOT/PROBLEM-REPORT-FORM or in $ACE_ROOT/BUG-REPORT-FORM $TAO_ROOT/BUG-REPORT-FORM in older versions of ACE+TAO. Make sure to include this information when asking any questions about ACE+TAO since otherwise we have to "guess" what version/platform/compiler/options you've using, which is error-prone and slows down our responsiveness. >> Anyway before i make that big decision i need to have some >> questions answered: 1) Why did you decided not to use exceptions? >> Isn�t it the best way to handle errors? The short answers are "portability" and "efficiency". Please see Appendix A.6 in the C++NPv1 book <www.cs.wustl.edu/~schmidt/ACE/book1/> for a longer discussion of these issues. BTW, The ACE ORB (TAO) does use exceptions. >> 2) I saw you had a class that handles multicast but i haven�t >> seen much documentation about it, does is work correctly? Sure, it works great and is very easy to use. Check out Chapter 9 of the APG book <http://safari.awprofessional.com/?XmlId=0-201-69971-0> for documentation and examples. >> For example... something i have payed a lot of attention in my >> implementation of multicast is th...

[ace-bugs] Re: [ace-users] ACE Site Down !!!!!!!!
Hi Folks, >> Could you please post the URL's that you think are down? If you are >> takling of the intro online tutorials from Dr. Schmidt's website, >> then I may know the answer. Those tutorials were removed from the >> repository a few days back. BTW, the tutorials were removed for two reasons: .. No one was maintaining them. If you or anyone else would like to volunteer to maintain them we can add them back. .. They have been superceeded by the material from C++NPv[12] and APG, which are described at http://www.cs.wustl.edu/~schmidt/ACE/ The examples from these books are available in $ACE_ROOT/examples/C++NPv1 $ACE_ROOT/examples/C++NPv2 $ACE_ROOT/examples/APG Take care, Doug -- Dr. Douglas C. Schmidt, Professor TEL: (615) 343-8197 Electrical Engineering and Computer Science FAX: (615) 343-7440 Vanderbilt University WEB: www.cs.wustl.edu/~schmidt/ Nashville, TN 37203 NET: d.schmidt@vanderbilt.edu ...

Re: [ace-users] [ace-bugs] ace-bugs: ACE_FACTORY_DEFINE NEEDED
Hi, Thanks for using the PRF! > ACE VERSION: 6.1.7 > > HOST MACHINE and OPERATING SYSTEM: > > Intel(R) Core(TM)2 Duo CPU > Ubuntu 12.04.2 LTS > Linux version 3.2.0-37-generic > > TARGET MACHINE and OPERATING SYSTEM, if different from HOST: > COMPILER NAME AND VERSION (AND PATCHLEVEL): > > gcc version 4.6.3 > (Ubuntu/Linaro 4.6.3-1ubuntu5) > > THE $ACE_ROOT/ace/config.h FILE: > > #include "ace/config-linux.h" > > THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE : > > include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU > ssl=1 > > CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/default.features > (used by MPC when you generate your own makefiles): > > NONE > > AREA/CLASS/EXAMPLE AFFECTED: > > examples/C++NPv2/AIO_Client_Logging_Daemon.cpp > > DOES THE PROBLEM AFFECT: > EXECUTION! > sr_configurable_logging_server fails to properly work with libAIO_CLD.so > > SYNOPSIS: > > In AIO_Client_Lo...

RE: [ace-bugs] Re: [ace-users] ACE & POSIX
Hey there's a thought. ;-) I like it. Kindly, Graham -----Original Message----- From: owner-ace-bugs@cse.wustl.edu [mailto:owner-ace-bugs@cse.wustl.edu] On Behalf Of Stephen Torri Sent: Monday, June 14, 2004 9:38 PM To: Douglas C. Schmidt Cc: ace-bugs@cs.wustl.edu Subject: Re: [ace-bugs] Re: [ace-users] ACE & POSIX Douglas C. Schmidt wrote: > Hi Folks, > > >>Yes, but it sure would make the ACE libraries smaller and potentially >>easier to maintain. A lot of the OS specific code would go away. ;-) > > > Ah, but there's rub! It will actually make ACE much larger and harder > to maintain since there will be many platforms/compiler that don't > support the new standard for many years, so it will be necessary to > support multiple variants! Having said that, I welcome these > enhancements since I think they will help improve the relevance of C++ > (cf Java), but it won't make ACE smaller and easier to maintain > (unfortunately)! > > Take care, > > Doug So consider it a new opportunity to develop new design patterns, write more papers and books, and become financially independent. ;) Stephen ...

[ace-bugs] Re: [ace-users] Linux LFS (Large File Support) and ACE
Hi, >> It was not immediately apparent to me what (if anything) has to be >> done to enable large file support in ACE under linux, It should be straightforward - there needs to be a new set of methods added to the appropriate parts of ACE_OS and ACE_File to handle the 64-bit operations. >> or if the ACE source might be explicitly incompatible with LFS >> because it is not "type clean" (i.e., uses int or long vs. off_t in >> some places). ACE uses the POSIX types for its OS wrappers, so as long as POSIX is type clean, ACE should be type clean. Naturally, if you find problems please let us know. >> Can anyone comment? Someone has already taken a stab at this, though the work is incomplete. Check out http://www.cs.wustl.edu/~schmidt/64-bit-ACE-files.zip for the code. If you'd like to volunteer to integrate this into ACE please let us know. Thanks, Doug -- Dr. Douglas C. Schmidt, Professor TEL: (615) 343-8197 Electrical Engineering and Computer Science FAX: (615) 343-7440 Vanderbilt University WEB: www.cs.wustl.edu/~schmidt/ Nashville, TN 37203 NET: d.schmidt@vanderbilt.edu ...

Re: [ace-bugs] RE: FW: [ace-users] ACE & POSIX
Hi Graham, >> Having spent most of my time in the murky world of real-time >> embedded systems (for the medical industry) I can tell you this. >> It is quite unlikely that the "old dodgers" (according to your >> definition I would fall into that category) would upgrade their >> version of ACE. If the current (or older) version of ACE works why >> upgrade? That's not been our experience working with scores of companies during the past decade. There are many companies who are stuck using older compiler platforms, but are quite happy to upgrade to newer versions of ACE, particularly when those versions fix important bugs, improve compile-/run-time performance, and/or add useful features. In fact, companies like OCI do a good business supporting precisely these sorts of uesrs. >> The old gnu 2.7.2 compiler that was mentioned earlier is most >> likely the compiler that is used by Windriver's IDE Tornado (which >> I use daily). Tornado 2.0.2 for Intel CPUs uses a snapshot of the >> (2.7.2) gnu compiler (Although Windriver doesn't like to admit it. >> I don't know how they get around the open source rules.). Even the >> "new" version of Tornado coming out this fall uses a newer but >> still older version of the gnu compiler. But rumor has it that the >> Diablo compiler, which has been recently only available for >> Motorola C...

[ace-bugs] RE: [ace-users] Linux LFS (Large File Support) and ACE #2
D: Thanks for your quick response. I guess I'm a bit confused. From what I've read on the net, it seems that if I define -D_FILE_OFFSET_BITS=64 (as reported by getconf LFS_CFLAGS on linux), and my code uses posix types religiously, then my code should become large-file capable "just like that." Based on your email, if ACE is type-safe, then it should magically support large files given this flag. (getconf LFS_LDFLAGS returns nothing on linux). Yet, you also mention adding interfaces ACE_OS and ACE_File. What would be the motivation of those interfaces if the above is true? I suppose the answer is "to support large files on systems that do not support LFS API's posixely" ? A. -----Original Message----- From: Douglas C. Schmidt [mailto:schmidt@cs.wustl.edu] Sent: Tuesday, September 21, 2004 10:45 PM To: ace-bugs@cs.wustl.edu; aathan-ace-bugs-1524@cloakmail.com Subject: Re: [ace-users] Linux LFS (Large File Support) and ACE Hi, >> It was not immediately apparent to me what (if anything) has to be >> done to enable large file support in ACE under linux, It should be straightforward - there needs to be a new set of methods added to the appropriate parts of ACE_OS and ACE_File to handle the 64-bit operations. >> or if the ACE source might be explicitly incompatible with LFS >> because it is not "type clean" (i.e., uses int or long vs. off_t in >> some places)....

[ace-bugs] Re: [ace-users] Confirmed: Linux LFS (Large File Support) and ACE
Hi Andrew, >> FYI, I recompiled ACE with -D_FILE_OFFSET_BITS=64 without any compiler warnings, and it seems to work fine. Thanks for clarifying this! >> Note, the libg++ 3.3.3 on Fedora Core 2 does *not* seem to be >> large-file safe. E.g., ifstream breaks when opening a large file. >> I found a posting that the gcc team will be fixing this bug as part >> of the 3.4 release. I'm glad to hear that ACE is one step ahead at this point ;-) Thanks, Doug -- Dr. Douglas C. Schmidt, Professor TEL: (615) 343-8197 Electrical Engineering and Computer Science FAX: (615) 343-7440 Vanderbilt University WEB: www.cs.wustl.edu/~schmidt/ Nashville, TN 37203 NET: d.schmidt@vanderbilt.edu ...

Web resources about - [ace-bugs] Re: [ace-users] Use ACE to get binary http file - comp.soft-sys.ace

Samsung Galaxy Ace 4 User Reviews
Samsung Galaxy Ace 4 reviews written by Phone Arena users. You can read the opinion of each user and how they rate the phone in 11 categories. ...

Samsung Galaxy Ace 3 official: iPhone-alike size for the new user
Samsung has revealed another in its Galaxy series, the Galaxy Ace 3, now targeting entry-level smartphone users who want a pocket-friendly 4-inch ...

Resources last updated: 3/5/2016 7:29:48 PM