aMule Forum

English => Skins & GUI => Topic started by: Ibn on April 24, 2009, 09:17:07 PM

Title: Web-GMUI 0.1.2 released
Post by: Ibn on April 24, 2009, 09:17:07 PM
Web-GMUI is a multi client / multi gui web interface
that can connect to MLDonkey/aMule/rTorrent/Transmission and giFT.

Web Site (http://web-gmui.sourceforge.net/) & Download (http://sourceforge.net/project/showfiles.php?group_id=120414&package_id=242667) & Changelog (http://web-gmui.svn.sourceforge.net/viewvc/web-gmui/trunk/ChangeLog.txt?view=markup)

The last release had some serious bugs.
Those should be fixed by now.
Title: Re: Web-GMUI 0.1.2 released
Post by: Stu Redman on April 24, 2009, 10:28:20 PM
Which aMule versions are supported (and tested with) ? 2.2.4 , SVN or both ?
Title: Re: Web-GMUI 0.1.2 released
Post by: Ibn on April 25, 2009, 12:34:39 AM
Code: [Select]
EC_CURRENT_PROTOCOL_VERSION = 0x0201;That would be 2.2.4

Support for aMule SVN is in preparation, but it wouldn't work for 2.2.4 anymore.
Title: Re: Web-GMUI 0.1.2 released
Post by: Stu Redman on April 26, 2009, 02:43:18 PM
If you support multiple apps, you could also support multiple versions of an app (aMule 2.2.x, aMule 2.3).
We had to change the protocol to counter a potential security hole.
Title: Re: Web-GMUI 0.1.2 released
Post by: Ibn on April 27, 2009, 12:52:28 AM
Supporting multiple aMule versions is possible.
But it's tedious.
Title: Re: Web-GMUI 0.1.2 released
Post by: Ibn on May 04, 2009, 02:05:35 AM
The problem isn't the authorization enhancement, but incompatible changes between EC versions 0x0200 and 0x0202.
If the enum values of the ECCodes would keep their values and new entries would get unused values,
then there would no need to do any code duplication at all.
The difference could be dealt with an (automatic) runtime switch.
Title: Re: Web-GMUI 0.1.2 released
Post by: wuischke on May 04, 2009, 07:43:55 AM
Oops. I'm afraid this was me. I guess backwards compatibility in protocol design should play an as high role as code clarity from now on...
Sorry for your troubles.
Title: Re: Web-GMUI 0.1.2 released
Post by: Stu Redman on May 04, 2009, 11:45:05 PM
Code: (0x200) [Select]
EC_OP_NOOP                          = 0x01,
EC_OP_AUTH_REQ                      = 0x02,
EC_OP_AUTH_FAIL                     = 0x03,
EC_OP_AUTH_OK                       = 0x04,
EC_OP_FAILED                        = 0x05,

Code: (0x202) [Select]
EC_OP_NOOP                          = 0x01,
EC_OP_AUTH_REQ                      = 0x02,
EC_OP_AUTH_FAIL                     = 0x03,
EC_OP_AUTH_OK                       = 0x04,
EC_OP_AUTH_SALT                     = 0x05,
EC_OP_AUTH_PASSWD                   = 0x06,
EC_OP_FAILED                        = 0x07,

I already rearranged that (that's what happened to 0x201). The idea was that an old GUI trying to connect to a new client should exit gracefully which it does that way iirc.
Title: Re: Web-GMUI 0.1.2 released
Post by: GonoszTopi on May 05, 2009, 07:50:41 AM
Stu, all names should keep their values, unlike EC_OP_FAILED above.
Title: Re: Web-GMUI 0.1.2 released
Post by: Ibn on May 05, 2009, 07:55:52 AM
The initial auth request includes the protocol version the gui uses.
Why not send EC_OP_AUTH_FAIL when the protocol version is not supported (and some error string and protocol version tag attached)?

That would make it possible to choose the protocol version on the gui side.

I forgot to say, thanks for all the work you put into aMule. Keep up the good work!
Title: Re: Web-GMUI 0.1.2 released
Post by: GonoszTopi on May 05, 2009, 07:58:10 AM
Soon, maybe, soon.
Title: Re: Web-GMUI 0.1.2 released
Post by: Stu Redman on May 05, 2009, 09:40:57 PM
The initial auth request includes the protocol version the gui uses.
Why not send EC_OP_AUTH_FAIL when the protocol version is not supported (and some error string and protocol version tag attached)?
Well - it's actually doing that. I have tried resetting EC_OP_AUTH_REQ-FAILED to 2-5 and then cross connected old and new client with new and old gui. I got a correct error message every time.
So - should I make 0x0203 which equals 0x200 and just extends the new codes ? Thrice should pay for all.  ;)
Title: Re: Web-GMUI 0.1.2 released
Post by: Ibn on May 06, 2009, 05:34:30 PM
Quote
So - should I make 0x0203 which equals 0x200 and just extends the new codes ?
Yes please. :)
Title: Re: Web-GMUI 0.1.2 released
Post by: Stu Redman on May 10, 2009, 05:27:44 PM
Changed in 9599.  :)
Title: Re: Web-GMUI 0.1.2 released
Post by: Ibn on May 12, 2009, 05:57:12 PM
It is working now. Thanks.