Re: Adding a new protocol handler

Michael Herger <slim-b/[email protected]>
Newsgroups gmane.music.equipment.slimdevices.devel
Message-ID <[email protected]>
>> No, you'll have to do it in your Plugin.pm. I'd register there, and LMS
>> will then load the protocol handler if needed.
> 
> So you can register it in ProtocolHandler.pm and put -use
> Plugins::myPluginName::ProtocolHandler;- in Plugin.pm - or register it
> right there in Plugin.pm.
> 
> Does it make a difference (ressources, etc.) or is the 'proper' way to
> do it more like a convention?

The difference is in the last part of my previous posting: by 
registering it in Plugin.pm, the ProtocolHandler.pm would only be loaded 
when needed. This probably doesn't make much difference for a plugin 
which you'd only install to use that protocol, though.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.