Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019 
<== Date ==> <== Thread ==>

Subject: Re: asynManager isConnected
From: Eric Norum <eric@norum.ca>
To: <matthew.pearson@diamond.ac.uk>
Cc: tech-talk@aps.anl.gov
Date: Fri, 1 Jun 2012 09:14:34 -0700
On Jun 1, 2012, at 8:45 AM, <matthew.pearson@diamond.ac.uk> 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
eric@norum.ca






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  <20122013  2014  2015  2016  2017  2018  2019 
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  <20122013  2014  2015  2016  2017  2018  2019 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·