lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Thu, Feb 23, 2012 at 8:08 PM, Satheesh Kumar <satheeshrulzz@gmail.com> wrote:
> I use lua in a game engine where external C libraries are not allowed  :(
> I should have been clearer.
>
> So  is there a pure Lua solution for the above?

Pure lua doesn't have any networking capability... it must be added
using a C library, but assuming you can use UDP both the protocols
Eric mentioned run over standard UDP, so would be implementable in
lua.

Cheers,
Sam

> On Fri, Feb 24, 2012 at 8:57 AM, Eric Wing <ewmailing@gmail.com> wrote:
>>
>> I think you want to look at NAT-PMP (NAT Port-Mapping-Protocol) or for
>> the masochists, UPnP. I see a lot of peer-to-peer software like
>> Bittorrent clients now support both to deal with NATs.
>>
>> NAT-PMP draft/spec:
>> http://files.dns-sd.org/draft-cheshire-nat-pmp.txt
>>
>> Maybe this library is usable? (No personal experience with it.)
>> http://miniupnp.free.fr/libnatpmp.html