In python? Yes. Python's built-in socket has udp support.

But anyway you still need to feed the data into web2py if you want to
use web2py as a front-end. Unfortunately your "other system" doesn't
support HTTP output.

BTW, you are from taiwan?  I'm from China mainland. Nice to meet you
here.


On Jun1, 9:05pm, dlin <dlin...@gmail.com> wrote:
> Is it possible to have multi-thread in python to listen udp socket and
> just collect the status in ram instead of DB?
>
> On 5月31日, 上午11時46分, Iceberg <iceb...@21cn.com> wrote:
>
>
>
> > You can use web2py's cron feature to trigger a data collector, which
> > use "3. command line utility" you mentioned to gather data, insert
> > into your web2py app's db, then you can show it in the way you like.
>
> >http://web2py.com/book/default/section/4/17?search=cron
>
> > On May31, 10:44am, dlin <dlin...@gmail.com> wrote:
>
> > > I'm a newbie of web2py.
> > > I wish to use web2py to present my other system's status.
> > > As I know web2py is event driven, I don't know how to plugin my C
> > > system into it.
>
> > > What's the suggest architecture?
>
> > > My other system is built by C++ program.
> > > The different system status is provided three methods:
> > >   1. put in common shared memory.
> > >   2. broadcast by udp socket.
> > >   3. command line utility.
>
> > > Is there any example could let me try?

Reply via email to