[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: copas, luasocket and xyssl
- From: gary ng <garyng2000@...>
- Date: Sat, 21 Jul 2007 03:41:45 -0700 (PDT)
--- Ketmar Dark <ketmar@ic.km.ua> wrote:
> and you can create new socket object, :close() it
> and than do :setfd()
> on it with fd you want to pass to select(). this is
> a hack, but it
> works. just don't forget to do :setfd(-1) then, or
> LuaSocket will
> happily close this fd when GC will free your socket
> object.
>
I know about this hack but it is COPAS that I
initially thought was the issue as it called
skt:receive/skt:send where if I use a luasocket
object(through this hack), the send and receive is not
my xyssl one which is needed.
But I have gone through luasocket again and found that
it doesn't check for object type when doing select(),
it just call skt:getfd() so I just need to implement
that call in my object.
sorry for the false alarm.
____________________________________________________________________________________
Sick sense of humor? Visit Yahoo! TV's
Comedy with an Edge to see what's on, when.
http://tv.yahoo.com/collections/222