Commit Graph

50 Commits

Author SHA1 Message Date
Thomas Bernard 92fb28284b shut down warnings 2016-02-26 13:24:39 +01:00
Thomas Bernard 780f20b75c add upnpc_event_unsubscribe() 2016-02-25 13:54:23 +01:00
Thomas Bernard 6f5a5907e5 use the new way to add extended methods in libevent http 2016-02-25 13:53:51 +01:00
Thomas Bernard d42a7f979d add subscribe_callback
+various minor debug things
2016-02-25 13:52:35 +01:00
Thomas Bernard 95a75b6dd0 see 9bf5a0bd90 2015-10-10 11:52:38 +02:00
Thomas BERNARD c115f7ed88 use pkg-config 2015-10-02 18:57:53 +02:00
Thomas BERNARD a5fa14b9b6 dont define _POSIX_C_SOURCE under OS X and FreeBSD 2015-10-02 18:53:21 +02:00
Thomas Bernard e1f7a63044 adapt code to new libevent method extension 2015-09-15 23:28:59 +02:00
Thomas Bernard 2f5cc79033 igd_desc_parse.c: fix buffer overflow 2015-09-15 16:15:30 +02:00
Thomas Bernard 1dcab82a7b check memory allocation
see a3179fb284
2015-07-22 15:53:07 +02:00
Thomas Bernard 4be2f4c9b5 miniupnpc-libevent: set multicast TTL to 2 2015-07-22 15:52:33 +02:00
Chocobo1 d78ccf931a Fix compilation on TravisCI 2015-07-19 21:36:09 +08:00
Chocobo1 216dd5e905 Remove libminiupnpc-ev.a when "make clean" 2015-06-10 18:15:00 +08:00
Daniel Winzen ba753120df Fix memory leaks 2015-04-28 08:44:13 +02:00
Thomas Bernard 37c649257b miniupnpc-libevent.c: check req argument in callbacks 2015-02-05 18:59:44 +01:00
Thomas Bernard 18ae95e101 miniupnpc-libevent.c: fix debug_printf() void definition 2015-01-01 19:39:08 +01:00
Thomas Bernard e644f219fa miniupnpc-libevent: check SID and other headers in event NOTIFY 2014-12-13 19:10:39 +01:00
Thomas Bernard 1b4f132284 miniupnpc-libevent: "fix" debug_printf() if DEBUG not defined. 2014-12-12 19:09:48 +01:00
Thomas Bernard 7f47555c66 miniupnpc-libevent: subscribe and receive UPNP events !
enable with -DENABLE_UPNP_EVENTS
libevent need to support SUBSCRIBE and NOTIFY requests
see https://github.com/miniupnp/libevent/tree/upnp_ext
2014-12-12 19:08:00 +01:00
Thomas Bernard 64578041bd miniupnpc-libevent: include port in Host HTTP header if != 80 2014-12-12 19:03:28 +01:00
Thomas Bernard 1217512a32 miniupnpc-libevent: upnpc_set_local_address() 2014-12-12 18:58:06 +01:00
Thomas Bernard 37c4f7dda1 miniupnpc-libevent.c: free event_cif_url/event_conn_url
see 2455cc85b6
2014-12-12 18:56:06 +01:00
Thomas Bernard 4966cf7166 miniupnpc-libevent.h: remove unused definitions 2014-12-12 18:39:05 +01:00
Thomas Bernard f7ec0e17c3 miniupnpc-libevent: split upnpc_init() / upnpc_start() 2014-12-12 18:37:54 +01:00
Thomas Bernard 2455cc85b6 miniupnpc-libevent: add event_cif_url/event_conn_url 2014-12-08 17:24:25 +01:00
Thomas Bernard 215b357e55 miniupnpc-libevent: prevent several SOAP request at the same time. 2014-12-08 17:23:29 +01:00
Thomas Bernard 8868eb7299 miniupnpc-libevent.c: minor modifications in logging 2014-12-06 12:20:24 +01:00
Thomas Bernard a509abb371 miniupnpc-libevent/upnpc-libevent.c: improve output 2014-12-02 15:09:39 +01:00
Thomas Bernard 2fd247bcbc miniupnpc-libevent.c: make sure b < i and vars are initialized 2014-12-02 15:09:20 +01:00
Thomas Bernard 9fa6e70a55 miniupnpc-libevent: #define MINIUPNPC_LIBEVENT_API_VERSION 1 2014-12-02 14:48:39 +01:00
Thomas Bernard 12e49bda0d miniupnpc-libevent.c: set UPNPC_DEVICE_SOAP_REQ properly 2014-12-01 18:48:03 +01:00
Thomas Bernard c021d7351f miniupnpc-libevent: add ability to work on several devices simultaneously 2014-12-01 18:44:38 +01:00
Thomas Bernard 2b233cdf69 miniupnpc-libevent.c: add double quotes (") around SOAPAction 2014-11-28 14:28:17 +01:00
Thomas Bernard c9e71676a8 miniupnpc-libevent/Makefile: add /usr/local/include and /usr/local/lib 2014-11-28 14:26:21 +01:00
Thomas Bernard 8325b715d3 miniupnpc-libevent: handle error cases 2014-11-25 23:51:59 +01:00
Thomas Bernard b642e74124 miniupnpc-libevent.c: upnpc_conn_close_cb() only in DEBUG mode 2014-11-25 23:50:56 +01:00
Mike Gelfand c490b42547 Fix _POSIX_C_SOURCE definition
Current code makes use of `snprintf` function defined in C99 standard
but _POSIX_C_SOURCE is set to "1" which is not correct. To access C99
definitions, this macro should be set to at least "200112L".

Also, `strncasecmp` function is being used but corresponding <strings.h>
header is not being included in miniwget.c.

Changes have been tested on FreeBSD 10.1 amd64 with default compiler
(Clang).
2014-11-19 17:06:14 +03:00
Thomas Bernard d4bf4c7572 miniupnpc-libevent: add upnpc_get_status_info() 2014-11-18 10:31:59 +01:00
Thomas Bernard b6896d5c08 miniupnpc-libevent: WIN32 => _WIN32 2014-11-17 20:33:11 +01:00
Thomas Bernard d44d16a688 igd_desc_parse.c: define printIGD() only in DEBUG 2014-11-17 20:32:41 +01:00
Thomas Bernard fa414c5bb6 allow to build miniupnpc-libevent with MacPorts 2014-11-17 17:29:52 +01:00
Thomas Bernard 7264fa53a9 miniupnpc-libevent: remove unecessary files 2014-11-17 17:29:24 +01:00
Thomas Bernard bd8ba03b54 miniupnpc-libevent: try with several M-SEARCH requests 2014-11-17 11:15:18 +01:00
Thomas Bernard 3065bc570f miniupnpc-libevent: use service type from root description 2014-11-17 10:22:34 +01:00
Thomas Bernard cbd262749f miniupnpc-libevent/upnpc-libevent.c: detect local IP address and use it 2014-11-14 12:39:58 +01:00
Thomas Bernard 3bf2398903 miniupnpc-libevent: add upnpc_delete_port_mapping() 2014-11-14 12:39:15 +01:00
Thomas Bernard e8a9db9fb1 miniupnpc-libevent/upnpc-libevent.c: various 2014-11-13 10:47:55 +01:00
Thomas Bernard 60cc52fee9 miniupnpc-libevent.c: various cosmetic issues 2014-11-13 10:22:05 +01:00
Thomas Bernard b4895f2247 miniupnpc-libevent.c: clean up 2014-11-13 10:21:17 +01:00
Thomas Bernard b33f4b343a Adding miniupnpc-libevent 2014-11-12 16:56:35 +01:00