[ace-users] [ace-bugs] TCP Connection parameters in ACE

Douglas C. Schmidt schmidt at dre.vanderbilt.edu
Sat Sep 19 20:50:39 CDT 2015


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


or in


in older versions of ACE, TAO, CIAO, and DAnCE.  Make sure to include
this information when asking any questions since otherwise we have to
"guess" what version/platform/compiler/options you've using, which is
very error-prone and slows down our responsiveness.  If you don't use
the PRF, therefore, it is less likely that someone from the core
developer team will be able to answer your question.  Naturally, we
encourage and appreciate other members of the ACE, TAO, CIAO, and
DAnCE user community who can respond to questions that they have the
answers to.

> How to set TCP Connection parameters, such as "keep alive" in ACE?

Assuming you've got an ACE_SOCK_Stream object called "stream", you can
do it like this:

stream.set_option (SOL_SOCKET,
                   sizeof bufsiz);

More information about the ace-users mailing list