[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua Socket
- From: gary ng <garyng2000@...>
- Date: Sat, 21 Jul 2007 17:27:46 -0700 (PDT)
--- Diego Nehab <diego@tecgraf.puc-rio.br> wrote:
> I had the impression I had done exactly that. The
> buffering
> code is completely independent of the send/receive
> routines,
> is it not? It is, in fact, an independet module. The
> send/receive routines are just function pointers.
> Can you
> ellaborate?
>
I mean I need to use the same buffering code in my
case to support *a or *l so I have to take it out from
luasocket source and incorporate it back to my binding
code.
What I mean by independent module is more in the form
of:
require'buffering'
x=buffering.new(underlying_dump_stream)
where dump_stream is just a stream provide raw
read/write(i.e. only size) and I do my read/write
through x:read, x:write for *a, *l and the like.
____________________________________________________________________________________
Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow