ORLY - Relay commands through the hub

Ideas for ADC may be presented here for others to review and point out flaws or further improve the idea.
Forum rules
If you have an account on the wiki, remember to update the ADC Proposals page for new ideas.

http://dcbase.org/wiki/ADC_Proposals_list
Locked
Pretorian
Site Admin
Posts: 214
Joined: 21 Jul 2009, 10:21

ORLY - Relay commands through the hub

Post by Pretorian » 20 Nov 2012, 21:22

This comes from http://www.flexhub.org/forum/index.php?topic=444.0
This is a protocol extension idea to allow a client or bot to send data to other users seeming to come from the hub:

client sends to the hub: HRLY <targetsid> <cmd> <data>
hub sends to targetsid: <cmd> <data>

This can be used for example to allow an external bot to send usercommands:

bot sends: HRLY ABCD ICMD <usercommand>
hub sends to ABCD: ICMD <usercommand>
I don't know whether this command is actually implemented or not. However, I can say that it is completely worthless. The extension adds nothing the protocol can't handle today already. The client can do this already by sending a D-type (or E-type) message; "DCMD ...". The other clients in the hub should not care about the type, as required by the spec. The hub however, should only forward D-type CMDs if the users are trusted, otherwise anyone can send them (as we saw recently). So basically, just use a D-type CMD.

I can't really think of any other command that would a) require that the hub is seen as the sender and b) can't be done through the use of a D/E type message.

Locked