[erlang-questions] [ANN] nat_upnp

Benoit Chesneau bchesneau@REDACTED
Mon Jul 1 18:15:52 CEST 2013


On Mon, Jul 1, 2013 at 6:10 PM, Max Lapshin <max.lapshin@REDACTED> wrote:
> Sorry, but what for do you required to start inets? There is call to
> xmerl_scan which doesn't require started inets.

inets need to be started to use httpc :

https://github.com/benoitc/nat_upnp/blob/master/src/nat_upnp_proto.erl#L193

I didn't want to use any external lib for this one, and httpc can't be
used without having inets started unfortunately. Or did I miss
something?

- benoit
>
>
> On Mon, Jul 1, 2013 at 7:55 PM, Benoit Chesneau <bchesneau@REDACTED> wrote:
>>  Just released nat_upnp a simple library that provides you a way to
>> map a local port to the external using UPNP IGD [1] :
>>
>> https://github.com/benoitc/nat_upnp
>>
>> While the old library I extracted fron etorrent [2] was working it was
>> pretty complicated to use, and you couldn't dynamically add or remove
>> a port from your router.  This one does it, also the code and the
>> design  is more simple. It is only using the  bare minimum of the UPNP
>> spec and no gen_server. Also this library is only based on the
>> standard library in Erlang.
>>
>> Any feedback is welcome,
>>
>> Enjoy !
>>
>> [1] http://en.wikipedia.org/wiki/Internet_Gateway_Device_Protocol
>> [2] https://github.com/benoitc/upnp
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions



More information about the erlang-questions mailing list