discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Help with using gnuradio c++ api


From: CEL
Subject: Re: [Discuss-gnuradio] Help with using gnuradio c++ api
Date: Mon, 30 Apr 2018 17:48:11 +0000

Hi Snehasish,

since this is defitnitely not your complete code, there's nothing we
can do to help you :(

Best regards,
Marcus

On Mon, 2018-04-02 at 19:13 +0000, Snehasish Kar wrote:
> Hello
> 
> I was trying to generate a flow graph using file source descriptor and a file 
> sink. But after generating the  output instead of writing to the file, it 
> prints the output in the screen. Below is the code. Please let me know where 
> I am going wrong.
> 
> 
> gr::blocks::file_descriptor_source::sptr 
> fileDescriptorSource(gr::blocks::file_descriptor_source::make(sizeof(std::complex<float>)*200000,clientSockfd,false));
>  
> gr::blocks::file_sink::sptr 
> filesink(gr::blocks::file_sink::make(sizeof(std::complex<float>)*200000,"/tmp/rx.bin",false));
> gr::top_block_sptr tb(gr::make_top_block("filedescriptor_test"));
>  
> tb->connect(fileDescriptorSource,0,filesink,0);
>  
> tb->start();
>  
> tb->wait();
> 
> BR
> Snehasish
> 
> 
> 
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

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