[Ace-users] connect() reuse_addr
joe
joelihn at hotmail.com
Mon Jan 14 03:52:50 CST 2008
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".
More information about the Ace-users
mailing list