[Ace-users] [ace-users] connect() reuse_addr
Douglas C. Schmidt
schmidt at dre.vanderbilt.edu
Mon Jan 14 07:50:10 CST 2008
Hi,
Thanks for provide the version info.
>ACE VERSION: 5.5.10
>HOST MACHINE and OPERATING SYSTEM: winxp
>COMPILER NAME AND VERSION (AND PATCHLEVEL): g++
>THE $ACE_ROOT/ace/config.h FILE : #include "ace/config-win32.h"
>THE $ACE_ROOT/include/makeinclude/platform_macros.GNU
>FILE :platform_macros.GNU
>DESCRIPTION:
>
>while (1) {
> ACE_OS::sleep(timeout);
> if (-1== connector_control.connect(stream_sock, iListen_Addr, 0,
>ACE_Addr::sap_any, 1))
> ACE_DEBUG ((LM_ERROR, ACE_TEXT ("%p\n"), ACE_TEXT ("connect
>recon")));
>}
>
>
>but it still print "socket is already connected".
What are you trying to do? Make sure to send a complete example, not
just a snippet..
Thanks,
Doug
--
Dr. Douglas C. Schmidt Professor and Associate Chair
Electrical Engineering and Computer Science TEL: (615) 343-8197
Vanderbilt University WEB: www.dre.vanderbilt.edu/~schmidt
Nashville, TN 37203 NET: d.schmidt at vanderbilt.edu
More information about the Ace-users
mailing list