Re: [Ilugc] .a-tip-a-day. (lua programming - Python like scripting language [ Part II ])

2009-10-22 Thread Kapil Hari Paranjape
Hello, On Thu, 22 Oct 2009, Ashok Gautham wrote: > On Thu, Oct 22, 2009 at 7:21 AM, Kapil Hari Paranjape > wrote: > > > Or you could always use "socat". > > > > A simple "echo" over UDP could be implemented as follows: > >  $ socat - UDP:loopback:2000,bind=:2000 > > This was just a simple exam

Re: [Ilugc] .a-tip-a-day. (lua programming - Python like scripting language [ Part II ])

2009-10-22 Thread Ashok Gautham
On Thu, Oct 22, 2009 at 7:21 AM, Kapil Hari Paranjape wrote: > Hello, > > Or you could always use "socat". > > A simple "echo" over UDP could be implemented as follows: >  $ socat - UDP:loopback:2000,bind=:2000 This was just a simple example program to teach a language. Much like the "Hello Worl

Re: [Ilugc] .a-tip-a-day. (lua programming - Python like scripting language [ Part II ])

2009-10-21 Thread Kapil Hari Paranjape
Hello, On Thu, 22 Oct 2009, Girish Venkatachalam wrote: > Before that in case any of you wondered this is how you would run it. > > $ lua echosrvr.lua > > In another terminal > > $ lua echoclnt.lua > hi > > will get printed on both sides as the text will be echoed back thro' the UDP > socket.

[Ilugc] .a-tip-a-day. (lua programming - Python like scripting language [ Part II ])

2009-10-21 Thread Girish Venkatachalam
I shall explain these programs line by line. Before that in case any of you wondered this is how you would run it. $ lua echosrvr.lua In another terminal $ lua echoclnt.lua hi will get printed on both sides as the text will be echoed back thro' the UDP socket. I hope you guys got that far at