Search the web
Sign In
New User? Sign Up
ace-users
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
[ace-users]: connector open/close/reopen question   Message List  
Reply | Forward Message #30997 of 42992 |

ACE VERSION: 5.2.2

HOST MACHINE and OPERATING SYSTEM: Pentium Windows 2000 SP2
TARGET MACHINE and OPERATING SYSTEM, if different from HOST:
COMPILER NAME AND VERSION (AND PATCHLEVEL): MSVC 6 SP5

AREA/CLASS/EXAMPLE AFFECTED:


DOES THE PROBLEM AFFECT:
COMPILATION? No

LINKING? No

EXECUTION? Yes

OTHER (please specify)?


SYNOPSIS:
I want to be able to open a TCP/IP port, close it, and reopen it.

DESCRIPTION:
I am successful in the open/close/open of the port itself. This is not
the problem. The issue I am running into is that after I reopen the
port, the Reactor appears to hang and I do not see the handle_input()
function being called. I have looked around for info on how to properly
close down and reopen/restart but have met with only small amounts of
success. Can someone please point me towards some documentation or
samples on how to handle this scenario.

REPEAT BY:
What you did to get the error --> agreed to get involved with a
Microsoft project.

SAMPLE FIX/WORKAROUND:
[If available ]


Jonathan Augenstine
Sr. Software Engineer
JamboTech, Inc.
jaugenstine@...
818.676.3443




Thu May 16, 2002 10:24 pm

jaugenstine@...
Send Email Send Email

Forward
Message #30997 of 42992 |
Expand Messages Author Sort by Date

ACE VERSION: 5.2.2 HOST MACHINE and OPERATING SYSTEM: Pentium Windows 2000 SP2 TARGET MACHINE and OPERATING SYSTEM, if different from HOST: COMPILER NAME AND...
Jonathan Augenstine
jaugenstine@...
Send Email
May 16, 2002
10:19 pm

Hi Jonathan, Thanks for using the PRF. ... That may be because you're actually getting a different port number than you originally had. I believe that...
Douglas C. Schmidt
schmidt@...
Send Email
May 17, 2002
12:18 am

Doug, Thanks for the reply. To make sure I understand, what you are saying is that the new local port connected is different from the original port connected....
Jonathan Augenstine
jaugenstine@...
Send Email
May 17, 2002
3:40 pm

Hi Jonathan, ... Right, that's my guess as to what might be going on. Try checking to see what port you've actually registered for and see if that's what...
Douglas C. Schmidt
schmidt@...
Send Email
May 17, 2002
8:27 pm

I posted a response to this on the newsgroup. To summarize, if Jonathan will send me a simple test case that reproduces the problem, I will investigate this...
Justin
michel_j@...
Send Email
May 17, 2002
4:10 pm

Doug/Justin, I think I finally have this figured out. This morning I was trying to get a example app(s) that illustrated my problem and in the course of doing...
Jonathan Augenstine
jaugenstine@...
Send Email
May 23, 2002
9:04 pm

Hi Jonathan, ... This won't shutdown the socket. It simply stops the reactor event loop. If you want to shutdown the socket, then call close() on your ...
Ossama Othman
ossama@...
Send Email
May 23, 2002
10:14 pm

Ossama, Thanks for the reply. ... Yes - I was also calling close() on the connector. ... I know that register_handler() was being called but I must confess I...
Jonathan Augenstine
jaugenstine@...
Send Email
May 23, 2002
10:42 pm

Hi Jonathan, ... You're quite welcome! ... Try calling reset_reactor_event_loop() on the reactor before attempting to restart the event loop (i.e. call ...
Ossama Othman
ossama@...
Send Email
May 23, 2002
10:45 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help