Hubs feature a list of clients or users connected to them. Users can search for files and download them from other clients, as well as chat with other users.
There is no official specification of the protocol. This means that every client and hub besides the original Neo-modus client and hub have been forced to reverse engineer the information. As such, any protocol specification this article may reference is likely either inaccurate and/or incomplete.
The client-server (as well in client-client, where one act as "server") aspect of the protocol stipulates that the server speak first when a connection has been made. For example, when a client connect to a hub's socket, the hub is first to talk to the client.
The protocol does not require a character encoding or font for clients or hubs.
Port 411 is the default port for hubs, and 412 for client-to-client connections. If any of these ports are already in use, the next port is used. For example, if 411, 412 and 413 is in use, then port 414 will be used.
Hub addresses are in the following form: dchub://example.com[:411], where 411 is an optional port.
There is no global identification scheme; users are identified with their nick-name on a hub-to-hub basis.
An incoming request for a client-client connection cannot be linked with an actual connection.
A search result cannot be linked with a particular search.
Supported by the protocol is the ability to kick or move (redirect) a user to another hub. There is no restriction where a user might be redirected to. If a user is kicked, the hub isn't required to tell the specific reason as to why the user was kicked. However, if another client in power instructs the hub to kick, that client may send out a notification message before doing so. Redirecting a user must be accompanying with a reason. There is no [referer] equivalent.
Hubs may send out user commands to clients. These commands are only raw protocol commands, and is mostly for making a particular task simpler. For example, the hub cannot send a user command that will trigger the default browser to visit a website. It can however add the command "+rules" (where '+' indicate to the hub that it's a command - this may vary) to display the hub's rules.
The peer-to-peer part of the protocol is based around a concept of "slots" (similar to number of open positions for a job). These slots denote the number of people that are allowed to download from a user at any one time. These slots are controlled by the client.
In client to client connections, the parties negotiate a random number to see who should be allowed to download first. The client with the highest number wins.
Downloads are transported using TCP. Active searches use UDP. The connection to the hub is with TCP.
There are two kinds of modes a user can be in, either "active" or "passive" mode. Clients using active mode can download from anyone else on the network. Clients using passive mode users can only download from active users. In NeoModus Direct Connect, passive mode users receive other passive mode users' search results, while the user will not be able to download anything. In DC++, users will not receive those search results. In NeoModus Direct Connect, all users will be sent at most five search results per query. If a user has searched, DC++ will respond with ten search results when the user is in active mode, or five, when the user is in passive mode. Passive clients will be sent search results through the hub, while active clients will receive the results directly.
Protocol delimiters are '$', '|' and ' ' (space). There is no escape sequence, so these characters can't be sent without possibly compromising the integrity of the message. However, a workaround was devised in DC++: send the HTML equivalent if these characters are to be viewed by the user.
Continued interest exists in features such as ratings and language packs. However, the authors of DC++ have been actively working on a complete replacement of the Direct connect protocol called Advanced Direct Connect.
One example of an added feature to the protocol, in compared to the original protocol, is the broadcasting of Tiger-Tree Hashing of shared files (TTH). The advantages of this include verifying that a file is downloaded correctly, and the ability to find files independent of their names.
Hubs often have special areas of interest. Many have requirements on the total size of the files that their members share (share size), and restrictions on the content and quality of shares. A hub can have any arbitrary rule. Hubs can allow users to register and provide user authentication. It should be noted that the authentication is also in clear text. The hub may choose certain individiuals as operators (similar to IRC operators) to enforce said rules if the hub itself cannot.
While not directly supported by the protocol, hub linking software exist. The software allow multiple hubs to be connected, allowing users to share and / or chat with people on the other linked hubs.
Direct connect hubs have difficulty scaling, due to the broadcast-centricity of the protocol.
The original client's file list (a comprehensive list of the files a user share) was compressed using Huffman's compression algorithm. Newer clients (among them DC++) serve a XML based list, compressed with bzip2.
for Linux. They also provide a GUI (dc_gui) for the client and a hub program (dchub).
The CTM Exploit made its presence known during 2006-2007 it made the developers take security issues more seriously since the whole direct connect network suffered from DDoS attacks from this exploit. It's recommended for users to run later versions of hubsoft due to this exploit. Many Hublists have started to block insecure hubs, this message was posted by Dchublist.com
Mon Apr 14, 2008IMPORTANT MESSAGE: There are still many hubs that are effected by the well known CTM exploit. As of next month we, along with other hublists, will be disabling these hubs from our active client lists. Please update your hubsofts to the latest versions to avoid this. Effected hubsofts are as follows: Verlihub-0.9.8c, Verlihub-0.9.8d-rc1, ynhub < 1.0306 , ptokax < 0.3.5.2. We will be emailing all the effected hubs in our list over the next week to notify them of our intentions. We will include instructions on where to obtain the updated versions of their respective hubsofts.