How to set TCP Connection parameters, such as "keep alive" in ACE?
ACE VERSION: 5.5.0
HOST MACHINE and OPERATING SYSTEM:
linux RHEL6.5
TARGET MACHINE and OPERATING SYSTEM,
linux RHEL6.5 gcc 4.4.7 20120313
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
gl=1
ssl=1
CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/default.features
(used by MPC when you generate your own makefiles):
SYNOPSIS:
when i try to remove a service (socket) from repository, program crash, i.e
DESCRIPTION:
i can do this:
ACE_Service_Repository::instance()->remove(MySocket)
because the process crash,
pleas help me hw to remove s service and get rid of from socket in ACE_Service_Repository
On Sun, Sep 20, 2015 at 5:20 AM, Douglas C. Schmidt <schmidt@dre.vanderbilt.edu
wrote:
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, 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,
SO_KEEPALIVE,
&bufsiz,
sizeof bufsiz);
Doug
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, 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,
SO_KEEPALIVE,
&bufsiz,
sizeof bufsiz);
Doug
    include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU<br>   gl=1 <br>   ssl=1<br><br><br>   CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/default.features<br>   (used by MPC when you generate your own makefiles):<br><br>  <br>   SYNOPSIS:<br></div><div>   when i try to remove a service (socket) from repository, program crash, i.e<br></div><div>  <br>   DESCRIPTION:<br><br> i can do this:<br>   ACE_Service_Repository::instance()->remove(
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 295 |
Nodes: | 16 (2 / 14) |
Uptime: | 07:57:40 |
Calls: | 6,642 |
Calls today: | 2 |
Files: | 12,190 |
Messages: | 5,326,192 |