On Jun 1, 2012, at 8:45 AM, <[email protected]> wrote:
> Thanks Lewis, Mark and Eric,
>
>>
>> I don't know of a function in Asyn that allows one to determine
>> whether the IP socket is connected. I always just determine
>> this based on the asynStatus returned from a read or write. But
>> maybe there's a way that I don't know about?
>>
>>
>
> That's what I was hoping to do too, but I'm not getting a return from the writeRead function. It blocks forever (at least, more than 15 mins) if I attempt a writeRead using the un-connected IP port. Eric suggested this might be due to the operating system timeout on TCP connections (which I gather can be fixed to infinite).
Well, I've never seen anything longer than 60 seconds so that isn't your problem.
>
> I'm probably doing something wrong, because I have the asynManager isConnected problem too.
>
> The reason I'm interested in understanding this, rather than just working around it, is because I want to handle connections to ethernet PMAC motor controllers automatically if they come up *after* the IOC has already started. Currently we have to restart an IOC if any of our PMACs come up that were turned off when the IOC was started.
What version of ASYN?
What operating system?
There have been *lots* of changes to the connect code over time.
--
Eric Norum
[email protected]
- References:
- asynManager isConnected matthew.pearson
- Re: asynManager isConnected J. Lewis Muir
- RE: asynManager isConnected matthew.pearson
- Navigate by Date:
- Prev:
Re: mbbi/mbbo Mask values Andrew Johnson
- Next:
Re: mbbi/mbbo Mask values Ralph Lange
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
<2012>
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
RE: asynManager isConnected matthew.pearson
- Next:
RE: asynManager isConnected Mark Rivers
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
<2012>
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|