Re: [Discuss-gnuradio] tcp and udp server

2009-05-19 Thread Josh Blum
I implemented a tcp source and sink in grc. I only tested it between two 
flow graphs on the localhost, so give it a try.


-Josh

feldmaus wrote:

Hi All,

i am read something about "sending data over tcp".
as i can see in grc there is only an udp sink.

Is there still a tcp sink ?

regards markus



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


tcp sink test.grc
Description: application/gnuradio-grc


tcp source test.grc
Description: application/gnuradio-grc
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] tcp and udp server

2009-05-15 Thread Firas Abbas

Hi,

> On Fri, 5/15/09, Eric Blossom  wrote:

> From: Eric Blossom 
> Subject: Re: [Discuss-gnuradio] tcp and udp server
> To: "Tom Lutz" 
> Cc: discuss-gnuradio@gnu.org
> Date: Friday, May 15, 2009, 8:54 PM
> On Fri, May 15, 2009 at 01:01:50PM
> -0400, Tom Lutz wrote:
> > On Fri, May 15, 2009 at 10:49 AM, Eric Blossom 
> wrote:
> > > On Fri, May 15, 2009 at 12:39:19PM +,
> feldmaus wrote:
> > >> Hi All,
> > >>
> > >> i am read something about "sending data over
> tcp".
> > >> as i can see in grc there is only an udp
> sink.
> > >>
> > >> Is there still a tcp sink ?
> > >
> > > No need.  Use python to open the appropriate
> file descriptors, then
> > > use gr.file_descriptor_{sink,source}
> > >
> > > Eric
> > >
> > >
> > Might be nice to abstract it into its own block for
> the people that
> > just want to slap it together.
> 
> Trust me, setting up the sockets is so much easier in Python in C++.
> 
> Eric


See this nice python networking tutorial :

http://heather.cs.ucdavis.edu/~matloff/Python/PyNet.pdf


BTW, the author of this tutorial has also a great python tutorials which can be 
very useful for gnuradio beginners such as:

http://heather.cs.ucdavis.edu/~matloff/Python/PyThreads.pdf

http://heather.cs.ucdavis.edu/~matloff/Python/PythonIntro.pdf




Also for general python programming :

http://heather.cs.ucdavis.edu/~matloff/Python/pyMPI.pdf

http://heather.cs.ucdavis.edu/~matloff/Python/PyIterGen.pdf

http://heather.cs.ucdavis.edu/~matloff/Python/PyFileDir.pdf

http://heather.cs.ucdavis.edu/~matloff/Python/PyCurses.pdf

Best Regards,

Firas



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


Re: [Discuss-gnuradio] tcp and udp server

2009-05-15 Thread Eric Blossom
On Fri, May 15, 2009 at 01:01:50PM -0400, Tom Lutz wrote:
> On Fri, May 15, 2009 at 10:49 AM, Eric Blossom  wrote:
> > On Fri, May 15, 2009 at 12:39:19PM +, feldmaus wrote:
> >> Hi All,
> >>
> >> i am read something about "sending data over tcp".
> >> as i can see in grc there is only an udp sink.
> >>
> >> Is there still a tcp sink ?
> >
> > No need.  Use python to open the appropriate file descriptors, then
> > use gr.file_descriptor_{sink,source}
> >
> > Eric
> >
> >
> Might be nice to abstract it into its own block for the people that
> just want to slap it together.

Trust me, setting up the sockets is so much easier in Python in C++.

Eric


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


Re: [Discuss-gnuradio] tcp and udp server

2009-05-15 Thread Tom Lutz
On Fri, May 15, 2009 at 10:49 AM, Eric Blossom  wrote:
> On Fri, May 15, 2009 at 12:39:19PM +, feldmaus wrote:
>> Hi All,
>>
>> i am read something about "sending data over tcp".
>> as i can see in grc there is only an udp sink.
>>
>> Is there still a tcp sink ?
>
> No need.  Use python to open the appropriate file descriptors, then
> use gr.file_descriptor_{sink,source}
>
> Eric
>
>
Might be nice to abstract it into its own block for the people that
just want to slap it together.

Tom


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


Re: [Discuss-gnuradio] tcp and udp server

2009-05-15 Thread Eric Blossom
On Fri, May 15, 2009 at 12:39:19PM +, feldmaus wrote:
> Hi All,
> 
> i am read something about "sending data over tcp".
> as i can see in grc there is only an udp sink.
> 
> Is there still a tcp sink ?

No need.  Use python to open the appropriate file descriptors, then
use gr.file_descriptor_{sink,source}

Eric


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


[Discuss-gnuradio] tcp and udp server

2009-05-15 Thread feldmaus
Hi All,

i am read something about "sending data over tcp".
as i can see in grc there is only an udp sink.

Is there still a tcp sink ?

regards markus



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