PDA

View Full Version : GPL a plugin based on SDK?


Tom Stöveken
4th March 2004, 12:49
Is it legal to GPL a plugin that is based on the SDK? Nether the SDKs Readme nor the website mention this explicitly.

So far I have developed two plugins. The first outputs the audiodata as a stream of RAW-UDP Packages into the LAN. All Packets are directed to the broadcast-address 255.255.255.255. So everybody with my second plugin, may join this stream and listen to the music.

javajunky
4th March 2004, 13:13
Hmm, on an un-related note, have you considered using a standard multi-cast address, rather than the broadcast address, that way only plugin users will see the traffic, rather than bombard everyone with it?... This works very well for my plugin (the streaming is actually done by http serving so I can stream multiple tunes at once), however the network discovery is done with multi-casted udp.

Sorry to not answer your question.

DrO
4th March 2004, 14:22
i don't think there are any problems since all the sdk really does is just give you message ids to pass to winamp - can't see why that would cause any issues :)

-daz

javajunky
4th March 2004, 15:03
If say you extend ml_ex (as I have done) however, where would that leave you ?

DrO
4th March 2004, 15:09
ml_ex is an example plugin and is there to be used as a base to extend upon so it should be fine as well.

/*
** Copyright (C) 2003 Nullsoft, Inc.
**
** This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held
** liable for any damages arising from the use of this software.
**
** Permission is granted to anyone to use this software for any purpose, including commercial applications, and to
** alter it and redistribute it freely, subject to the following restrictions:
**
** 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software.
** If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
**
** 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
**
** 3. This notice may not be removed or altered from any source distribution.
**
*/well that's the license in use from the files though if you're creating any winamp plugin it's known that the very base of the plugin is going to be the same so it should all be fine whatever you do.

-daz

Tom Stöveken
5th March 2004, 11:09
Hi and thanks for your respons.

Originally posted by javajunky
..., have you considered using a standard multi-cast address, ... however the network discovery is done with multi-casted udp.
@Javajunky:
Since the plugin sends already a huge amount of data through the LAN this solution is only intended for a small LAN at home. Of course one should have the possibility to enter a specific address later on. By now I have not found out how to create a dialog to prompt for an address with DevCpp. With Delphi this wouldn't be a problem :-)
Do you have sample code that shows what needs to be done to send a multicast? Do I only set the socket opt for broadcast and enter a multicast address? What steps do the clients have to perform?

If I base on the ml_ex plugin the license would be clear. The other files do not have this header :-/ Perhaps I should ask Justin Frankel. Has anybody his email? If yes, plz send it via pm through this forum.
I know that I am a little bit paranoid :), but I really want to be sure that everything is legal before publishing any code.

Kind regards and thanks so far,
Tom Stöveken

Rovastar
5th March 2004, 12:07
Justin doesn't work for Nullsoft/winamp anymore

javajunky
5th March 2004, 12:25
Its actually dead easy you just open a socket to a particular set of addresses (I can't remember them off of the top of my head) I'll try and exerpt the code for you, its very similar to broadcasting, it just allows you to maintain a particular 'group' of nodes rather than inform *everyone* on the network ;)

Originally posted by Tom Stöveken
Hi and thanks for your respons.


@Javajunky:
Since the plugin sends already a huge amount of data through the LAN this solution is only intended for a small LAN at home. Of course one should have the possibility to enter a specific address later on. By now I have not found out how to create a dialog to prompt for an address with DevCpp. With Delphi this wouldn't be a problem :-)
Do you have sample code that shows what needs to be done to send a multicast? Do I only set the socket opt for broadcast and enter a multicast address? What steps do the clients have to perform?

If I base on the ml_ex plugin the license would be clear. The other files do not have this header :-/ Perhaps I should ask Justin Frankel. Has anybody his email? If yes, plz send it via pm through this forum.
I know that I am a little bit paranoid :), but I really want to be sure that everything is legal before publishing any code.

Kind regards and thanks so far,
Tom Stöveken

Tom Stöveken
5th March 2004, 13:34
Originally posted by Rovastar
Justin doesn't work for Nullsoft/winamp anymore

Hmm, but it's his copyright in the sourcecode (from 1998, in_tone.c). Everything would be fine if the SDK's readme.txt contains a copyright licence like the one in the ml_lib.cpp header that covers every file in the SDK.
Is this possible? A simple copy and paste into the top-level readme.txt would be enough... plz!