home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
[Plugin] WOL-PowerManager
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="TiboTv" data-source="post: 1014576" data-attributes="member: 95893"><p>Hi all,</p><p> </p><p>As I'm a bit curious, I finally take a bit of my time to check how work this plugin. Thank you to share the code, it's very useful to understand the plugin!</p><p> </p><p>I compiled the plugin by myself to add some information into the log to understand why I've got DNS error messages and why sometimes MP stay blocked if the server can't be reached.</p><p> </p><p>I found 2 problems in the code :</p><p> </p><p>1) The "UseIPInsteadDNS" settings is only used when the plugin check periodically the state of the server. When UseIPInsteadDNS is On, the ping is done only with IP adress.</p><p>When the plugin call the ping from other routine, it doesn't make any difference if UseIPInsteadDNS is on or not and use only DNS server name and also call a routine to check if the ip of this DNS has changed. That's why we received DNS errors.</p><p> </p><p>2) In the wait routine, there's a bug when the plugin check the delay into the while loop. It check only the seconds! If the while loop is started at eg : 55sec it never reached the default 20sec because it substract nowtime with 55sec and we get a negative number. That's what block MP in my case (and sometimes not! depending when you try entering the window). The while loop never ended.</p><p> </p><p>I made correction into the code to solve these problems. Hereby you'll find a corrected plugin dll based on last available version on google.code project. If someone want to test this version, just make a backup copy of the original one and place this corrected one into the right folder. This forum doesn't like .dll file, so the file is on a zip.</p><p> </p><p>@<a href="https://forum.team-mediaportal.com/members/seppi2204.108981/" target="_blank">seppi2204</a> : I also attach the corrected source file to show you in details what I've changed. All my modification are commented, just make a file compare to see where I made some changes. I hope that it's not a problem for you if I post a corrected dll. It's open source project <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /> If it is a problem, just tell me and I'll remove it and other guys will wait your next release.</p></blockquote><p></p>
[QUOTE="TiboTv, post: 1014576, member: 95893"] Hi all, As I'm a bit curious, I finally take a bit of my time to check how work this plugin. Thank you to share the code, it's very useful to understand the plugin! I compiled the plugin by myself to add some information into the log to understand why I've got DNS error messages and why sometimes MP stay blocked if the server can't be reached. I found 2 problems in the code : 1) The "UseIPInsteadDNS" settings is only used when the plugin check periodically the state of the server. When UseIPInsteadDNS is On, the ping is done only with IP adress. When the plugin call the ping from other routine, it doesn't make any difference if UseIPInsteadDNS is on or not and use only DNS server name and also call a routine to check if the ip of this DNS has changed. That's why we received DNS errors. 2) In the wait routine, there's a bug when the plugin check the delay into the while loop. It check only the seconds! If the while loop is started at eg : 55sec it never reached the default 20sec because it substract nowtime with 55sec and we get a negative number. That's what block MP in my case (and sometimes not! depending when you try entering the window). The while loop never ended. I made correction into the code to solve these problems. Hereby you'll find a corrected plugin dll based on last available version on google.code project. If someone want to test this version, just make a backup copy of the original one and place this corrected one into the right folder. This forum doesn't like .dll file, so the file is on a zip. @[URL='https://forum.team-mediaportal.com/members/seppi2204.108981/']seppi2204[/URL] : I also attach the corrected source file to show you in details what I've changed. All my modification are commented, just make a file compare to see where I made some changes. I hope that it's not a problem for you if I post a corrected dll. It's open source project :D If it is a problem, just tell me and I'll remove it and other guys will wait your next release. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
[Plugin] WOL-PowerManager
Contact us
RSS
Top
Bottom