[Nut-upsdev] Changes to upscli_connect (and general discovery)

Stuart D. Gathman stuart at bmsi.com
Wed Jun 29 14:02:37 UTC 2011


On Wed, 29 Jun 2011, Arjen de Korte wrote:

> Citeren Charles Lepple <clepple at gmail.com>:
>
>> I guess I see the scanning code as a stopgap way to contact "legacy" 
>> servers (or what would be legacy after some discovery protocol like mDNS is 
>> set up), and either timeouts or non-blocking is just a kludge to make that 
>> work a little better. And isn't opening a non-blocking socket just a way to 
>> split socket connection and protocol initialization?
>
> If that's the case, this should be handled by the nut-scanner itself. For any 
> hosts found to be listening on port 3493 it would then proceed to use the 
> upscli_connect call to check if it really is a NUT server.

That is a very good idea.  Use some other port scanning code to narrow down
ports to try instead of corrupting upscli_connect with complications not
needed for normal operation.

--
 	      Stuart D. Gathman <stuart at bmsi.com>
     Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.



More information about the Nut-upsdev mailing list