discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Using file descriptor sink ?


From: Marcus Müller
Subject: Re: [Discuss-gnuradio] Using file descriptor sink ?
Date: Fri, 30 May 2014 18:03:01 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0

Ah sorry, forgot the important part: If you have opened a file from
python, let's say by:

myfile = open("/home/ruecan/secretplanforworlddominance.pdf", "r")

you can get the file descriptor by doing
fd = myfile.fileno()

Greetings,
Marcus

On 30.05.2014 17:50, Marcus Müller wrote:
> Hi Ruecan,
>
> if you're asking this question, you probably shouldn't use
> file_descriptor_sink.
> It works quite like file_sink, but instead of a filename, you pass a
> file descriptor, which is the int handler the open() syscall will return.
>
> Greetings,
> Marcus
>
> On 30.05.2014 17:19, Ruecan wrote:
>> Hello GR,
>>
>> Can anyone please give me some hints on how to use gr-file descriptor sink
>> in a gnuradio python flowgraph.  
>>
>> Regards,
>> Ruecan
>>
>>
>>
>> --
>> View this message in context: 
>> http://gnuradio.4.n7.nabble.com/Using-file-descriptor-sink-tp48640.html
>> Sent from the GnuRadio mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> Discuss-gnuradio mailing list
>> address@hidden
>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio




reply via email to

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