[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Luasocket in C
- From: "Ryan Knotts" <jknotts@...>
- Date: Wed, 22 Oct 2008 11:24:53 -0500
Maybe I am not thinking this out correctly but here is my thought
process. I plan on having some modules that use LuaSocket so I figured
that if I could I wanted to just use LuaSockets for everything. This
is to cut down on the bloat of including 2 socket libraries (the C
library and LuaSockets) so I was hoping that for my straight C code I
could take advantage or somehow call the LuaSockets C functions and
for my Lua modules use the same library but make the appropriate Lua
calls. I just dont want to include more libraries than I need to.
Thanks!
Ryan
On Wed, Oct 22, 2008 at 11:18 AM, Robert Raschke
<rtrlists@googlemail.com> wrote:
> On Wed, Oct 22, 2008 at 4:56 PM, Ryan Knotts <jknotts@gmail.com> wrote:
>> Do you know if there is anyway to call the C functions in LuaSocket
>> directly. Since LuaSocket is written in C I was just wondering if I
>> could use those functions that are included in socket.h in my C code.
>> Thanks for the help!
>
> Then why not just call socket(), select(), accept(), etc. (i.e., the C
> socket functions) directly?
>
> Robby
>