[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: copas, luasocket and xyssl
- From: gary ng <garyng2000@...>
- Date: Sat, 21 Jul 2007 03:41:45 -0700 (PDT)
--- Ketmar Dark <email@example.com> 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
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.