EPICS Controls 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  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024  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  <20222023  2024 
<== Date ==> <== Thread ==>

Subject: How to integrate libcas fdManager with application's native main loop?
From: "Dmitry Yu. Bolkhovityanov via Tech-talk" <tech-talk at aps.anl.gov>
To: tech-talk at aps.anl.gov
Date: Fri, 25 Mar 2022 12:53:17 +0700 (+07)
Dear EPICS experts,

I'm trying to add Portable Channel Access Server (libcas) to an existing application. The main part of work is straightforward, thanks to "Channel Access Portable Server Application Interface (API) Tutorial" at https://epics.anl.gov/extensions/cas/CAS_Tutorial.pdf
and "Channel Access Portable Server: Reference Guide" at
https://epics.anl.gov/extensions/cas/CAS_Reference.pdf

However, I can't find a way to integrate libcas file descriptor management (which is implemented by fdManager) with application's native main loop (which is select()-based). The only recipe I found is to call
fileDescriptorManager.process() periodically.

The question is: do fdManager/libcas include a functionality similar to CA's ca_add_fd_registration(), for it to be able to register its file descriptors directly with application's main loop?
(And, probably, a similar API for timeouts?)

Or is periodic calling fileDescriptorManager.process(0) the only way?


Navigate by Date:
Prev: RE: Epics Archiver Appliance and Network Storage slowdown Manoussakis, Adamandios via Tech-talk
Next: Re: About checksum error Mark Rivers via Tech-talk
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  <20222023  2024 
Navigate by Thread:
Prev: RE: cross-compiling Base 7.0.6 for win32 Daykin, Evan via Tech-talk
Next: ADViewer, EPICS_NTNDA_Viewer.java compilation Tomasz Brys via Tech-talk
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  <20222023  2024 
ANJ, 14 Sep 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·