On Thu, Apr 16, 2009 at 02:33:56PM -0400, devin kelly wrote:
> So, just to help me understand, let's say that running as root wasn't a
> problem.  Like, if you didn't have to be root to open a raw socket.
> 
> Would that mean that the open_usrp2_socket() function would just look like
> this
> 
> usrp2::open_usrp2_socket() {
> 
>         int fd = socket(PF_PACKET, SOCK_RAW, htons(0xBEEF);
>         return fd;
> }
> 
> and you wouldn't need the helper program, usrp2_socket_opener.cc?  

That's right.

> But, you would still need the read_fd(...) and write_fd(...) functions right?

No, they're only used to make the fd transfer between the helper
program and the app happen.

> Thanks again for the help.

You're welcome.

Eric


_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to