View previous topic :: View next topic |
Author |
Message |
rafal98
Joined: 02 Jan 2011 Posts: 2
|
Posted: Sun Jan 02, 2011 10:59 am Post subject: log event callback register |
|
|
Hi mister miniupnp
Thx for this upnp library.
I have a request. Sometime some router appear to have upnp but just limit to read-only for security reason or something like that. So there are some connect error that are printed in console. It's not very clean to have a "socket error" appearing from nowhere !
My suggestion is to add an api to register an external callback to print all error or debug messages.
Thx |
|
Back to top |
|
 |
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1525
|
Posted: Mon Jan 03, 2011 4:44 pm Post subject: |
|
|
I need to put that in the TODO
There are so many place with perror() calls ! _________________ Main miniUPnP author.
http://miniupnp.tuxfamily.org/ |
|
Back to top |
|
 |
rafal98
Joined: 02 Jan 2011 Posts: 2
|
Posted: Mon Jan 03, 2011 10:50 pm Post subject: |
|
|
Perhaps first step is to have your own log function, and second step accept to register a callback.
I will check sources to see if I can help you, but I'm a very very busy man |
|
Back to top |
|
 |
|