miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

log event callback register

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Feature Request
View previous topic :: View next topic  
Author Message
rafal98



Joined: 02 Jan 2011
Posts: 2

PostPosted: Sun Jan 02, 2011 10:59 am    Post subject: log event callback register Reply with quote

Hi mister miniupnp Smile

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
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1454

PostPosted: Mon Jan 03, 2011 4:44 pm    Post subject: Reply with quote

I need to put that in the TODO Sad
There are so many place with perror() calls !
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
rafal98



Joined: 02 Jan 2011
Posts: 2

PostPosted: Mon Jan 03, 2011 10:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Feature Request All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.