discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] USRP2 Sockets


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] USRP2 Sockets
Date: Thu, 16 Apr 2009 11:55:37 -0700
User-agent: Mutt/1.5.18 (2008-05-17)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]