DirectConnect Specification

Asked by nascentmind

Hi,
   In the direct connect specification it says that a command ends with a | (pipe symbol) but when i connect to a verlihub hub it gives $Lock <Something> | Hub was up blah blah blah | hub supported by blah blah blah| .Is that a protocol extension or something? If yes is it possible for someone to point me to the right specs?

Thanks in advance.

Question information

Language:
English Edit question
Status:
Solved
For:
DC++ Edit question
Assignee:
No assignee Edit question
Solved by:
Pietry
Solved:
Last query:
Last reply:
Revision history for this message
Pietry (pietry) said :
#1

$Lock <Something> | Hub was up blah blah blah | hub supported by blah blah blah|
Those are 3 commands , then

If yes is it possible for someone to point me to the right specs?

There are no specs. Try to use wireshark to get the actual messages that the client and hub are sending. You might get a picture then...

Revision history for this message
nascentmind (nascent-mind) said :
#2

Shouldn't command start with a '$' ?

Revision history for this message
Best Pietry (pietry) said :
#3

IIRC commands that dont start with $ are chat messages and should be displayed per se.

Revision history for this message
nascentmind (nascent-mind) said :
#4

Ok. The problem with this approach is that its tough to know when a message ends. In ADC protocol there is atleast an eol to stop the parsing. Thanks for the help.

Revision history for this message
nascentmind (nascent-mind) said :
#5

Thanks Pietry, that solved my question.

Revision history for this message
Pietry (pietry) said :
#6

Yes, this theoretically means that "|" or "$" cannot be included in any command.
To avoid this flaw, DC++ created a workaround: send the html equivalent of the character if inside the command
http://www.degraeve.com/reference/specialcharacters.php
So a message ends on "|".