discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Problem with my modified IP tunnelling example


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] Problem with my modified IP tunnelling example
Date: Mon, 4 Dec 2006 20:22:43 -0800
User-agent: Mutt/1.5.9i

On Tue, Dec 05, 2006 at 11:06:04AM +0800, Jeremy Chew wrote:
> Thanks Eric.
> 
> Regarding the packet data-type, since I'm modifying 
> gnuradio-examples-0.7/python/gmsk2/tunnel_ip_null_mac.py, I want to have 
> the same format used
> in that file. Based on examination of the Python code used in there, I
> understand that the packets are Python strings.
> 
> Could I confirm that this is true? I'm afraid that a wrong packet data-type 
> is
> causing the crash when the callback is called.
> 
> Jeremy

It's a SWIG wrapped C++ gr_message_sptr.  It is not a string.

address@hidden ~]$ python
Python 2.4.2 (#1, Oct 13 2006, 17:11:24)
[GCC 4.1.0 (SUSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from gnuradio import gr
>>> m=gr.message()
>>> m
<gnuradio.gr.gnuradio_swig_python.gr_message_sptr; proxy of <Swig Object of 
type 'gr_message_sptr *' at 0x80c44b8> >
>>> type(m)
<class 'gnuradio.gr.gnuradio_swig_python.gr_message_sptr'>
>>>




reply via email to

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