Questions tagged [ace]

The ADAPTIVE Communication Environment (ACE), a C++ network programming toolkit. For the ACE database available since MS Access 2007, use an ms-access tag and the ms-jet-ace tag. For the ACE editor, use the [ace-editor] tag.

The ADAPTIVE Communication Environment (ACE) is a freely available, open-source object-oriented (OO) framework that implements many core patterns for concurrent communication software.

For the ACE database available since MS Access 2007, use the tag and the tag.

For the ACE editor use the tag.

206 questions
0
votes
1 answer

Does ACE_Mutex use spin lock?

Some systems have pretty smart mutex locks that spin in-process for a bit before grabbing a lock from the OS. If your system has such a mutex there's not much point concerning yourself about writing an in-process mutex type. But not all systems…
Edward Strange
  • 40,307
  • 7
  • 73
  • 125
0
votes
1 answer

How to return from "ACE_Reactor::instance()->run_reactor_event_loop();" block forever?

I have an application that starts up and processes queued items. The items are processed at a timer framed rate. This is implemented using the ACE_Reactor class. The bit of code that kicks this off is: void start() { …
jterm
  • 973
  • 1
  • 12
  • 32
0
votes
1 answer

ACE C++ - How do I implement timeout for a function call?

I need to wrap a function in a timeout, using ACE in C++. This function is waiting for a response from the OS, and sometimes it does not return. I cannot modify the function, so I cannot put the abort condition into it directly. I have to add a…
inbaly
  • 582
  • 1
  • 6
  • 16
0
votes
2 answers

Is there a cross-platform network library for the iPhone?

Is there a cross-platform network library for the iPhone? Is ACE available for the iPhone? I would like the networking library to be available for iPhoneOS, OS X, Windows (XP, Vista, and Win7 would be nice but at least XP), Android, and…
zooropa
  • 3,929
  • 8
  • 39
  • 61
0
votes
1 answer

ACE_OS::read_n() return 0 even some data received

I uses ACE_OS::read_n() to read some data from stdin (ACE_STDIN). My code example: ACE_Message_Block *head = new ACE_Message_Block(BUFSIZ); size_t bytes_trans = 0; ssize_t nbytes = ACE_OS::read_n( ACE_STDIN, mblk->wr_ptr(), …
theDilletante
  • 98
  • 1
  • 9
0
votes
1 answer

No such device or address windows

When I used ACE_OS::fopen function to create file for writing, the result was failed and got errno message "No such device or address". Windows OS: windows server 2008 r2 enterprise! It made me confused, what kinds of reasons could cause this…
0
votes
2 answers

Compile ACE in Ubuntu 9.10

How do I compile ACE on Ubuntu 9.10. What environment variables do I need to set?
Ubik
  • 21
  • 1
0
votes
1 answer

Print or examine semaphore count value in GDB

I am trying to implement a thread pool using ACE Semaphore library. It does not provide any API like sem_getvalue which is in Posix semaphore. I need to debug some flow which is not behaving as expected. Can I examine the semaphore in GDB. I am…
Abhishek
  • 2,543
  • 4
  • 34
  • 46
0
votes
1 answer

How to create a group of threads via ACE library and wait for it to finish

I'm trying to create a group of threads and wait for it to finish. As far as I understand, I should use ace_thread_manager::spawn_n() function, but I don't know how to wait for all the threads of the group to finish. Can anyone refer me to a simple…
0
votes
1 answer

How to set an event preiodically with ACE library

I need to set a callback that will be called every pre-set time, according to a definition in a configuration file - suppose every 10 hours, by using the ACE library. I tried to use ACE_reactor and it seems to work, but it makes the application…
0
votes
1 answer

Get current running directory via ACE library

Does ACE library has any API to get the current running directory? I tried to use ACE_OS::getcwd(), but unfortunately it didn't help
0
votes
1 answer

ACE library and files system

How can I manage files and directories with ACE library? I tried to delete files with ACE_OS::unlink, but it didn't work. I also failed to create directories by using ACE_OS::mkdir. I need to find a way to create and delete directories, delete files…
0
votes
1 answer

How to redirect process output by using C++ ACE library

I need to write c++ code that uses the ACE library to create a process by building a string of its command line and redirect its output to a text file. I tried to use ACE_Process and ACE_Process_option classes. I set ACE_Process_option.command_line…
0
votes
1 answer

c++ how do I receive stream packets from internet site to my localhost

I am trying to write a program that sends stream packets to a certain listener (I am using my localhost) in UDP, using ACE. This is in order to test my program that receives a stream of UDP datagrams from a remote peer. So far I have managed to…
inbaly
  • 582
  • 1
  • 6
  • 16
0
votes
1 answer

Is ACE reactor timer managment thread safe?

I have a module that manages timers in my aplication. This class has basibly three functions: Instance of ACE_Reactor is used internally by the module to manage the timers. schedule timer - calls ACE_Reactor::schedule_timer(). One of the arguments…
dimba
  • 26,717
  • 34
  • 141
  • 196