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
> [email protected]
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

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

_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to