EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Using Async driver in linux to sent UDP broadcast message
From: "Mark Rivers" <[email protected]>
To: "Bruins, Stefan" <[email protected]>, <[email protected]>
Date: Fri, 13 Jan 2006 08:20:26 -0600
Hi Stefan,

What OS are you using?  I am not sure, but I would not be surprised if
sending a broadcast message required root privilege on Linux and Unix.

Can you try running your application as root and see if the problem goes
away?

Alternatively, can you see if it works on Cygwin, Win32, or vxWorks,
which don't require root for such operations, just to see if that is the
problem?

Mark Rivers


> -----Original Message-----
> From: Bruins, Stefan [mailto:[email protected]]
> Sent: Friday, January 13, 2006 5:34 AM
> To: '[email protected]'
> Subject: Using Async driver in linux to sent UDP broadcast message
> 
> For an application it is necessary to sent UDP broadcast messages.
When
> configuring the st.cmd file for the startup of the IOC as following:
> 
> 	drvAsynIPPortConfigure("L0","10.255.255.255:503 udp",0,0,0)
> 
> I get the following error from the epics shell:
> 
> 	Can't connect to 10.255.255.255:503 udp: Permission denied
15121872
> autoConnect could not connect
> 
> A search through google suggested that setsockopt maybe has to be
> configured
> different. Unfortunately there is no asynSetOption associated with
TCP/IP
> or
> UDP/IP.
> 
> When searching through the asyn source code a found a few calls of
this
> function in the "drvAsynIPPort.c". It is not clear for me if this is
the
> solution and where to change it because all the function calls have
> IPPROTO_TCP as an argument while I am using UDP.
> 
> My question is how the communication can be arranged.


Navigate by Date:
Prev: GPIB Support for 3.13.x Benjamin Franksen
Next: RE: Using Async driver in linux to sent UDP broadcast message Bruins, Stefan
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Using Async driver in linux to sent UDP broadcast message Bruins, Stefan
Next: RE: Using Async driver in linux to sent UDP broadcast message Bruins, Stefan
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·