Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Direct Connect (protocol)
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Protocol== The Direct Connect protocol is a text-based computer protocol, in which commands and their information are sent in clear text, without [[encryption]] in original NeoModus software ([[encryption]] is available as a protocol extension). Clients connect to a central server acting as a "hub". This hub provides content discovery and allows clients to negotiate direct connections with each other for transferring content. Since this central hub only deals with metadata, it does not have anywhere near the same bandwidth requirements as if it also had been serving the content itself; an estimate shows that handling 1000 users would require about 2.5 mbit/s of bandwidth.<ref>{{cite web|url=http://dcpp.wordpress.com/2007/04/23/command-and-bandwidth-estimations-in-nmdc/|title=Command and bandwidth estimations in NMDC|access-date=2007-07-27|author=Fredrik Ullner|date=April 2007|publisher=DC++: Just These Guys, Ya Know?|archive-date=2007-10-16|archive-url=https://web.archive.org/web/20071016062740/http://dcpp.wordpress.com/2007/04/23/command-and-bandwidth-estimations-in-nmdc/|url-status=live}}</ref> There is no official specification of the protocol, meaning that every client and hub (besides the original NeoModus client and hub) has been forced to [[Reverse engineering|reverse engineer]] the information. As such, any protocol specification this article may reference is likely inaccurate and/or incomplete.<ref>{{cite web |url=http://nmdc.sourceforge.net/NMDC.html |title=NMDC Protocol |website=Nmdc.sourceforge.net |access-date=2016-12-04 |archive-date=2017-02-10 |archive-url=https://web.archive.org/web/20170210042641/http://nmdc.sourceforge.net/NMDC.html |url-status=live }}</ref> The client-server (as well as client-client, where one client acts as "server") aspect of the protocol stipulates that the server respond first when a connection is being made. For example, when a client connects to a hub's [[Internet socket|socket]], the hub is first to respond to the client. The protocol lacks a specified default [[character encoding]] for clients or hubs. The original client and hub use [[ASCII]] encoding instead of that of the [[Operating system]]. This allows migration to [[UTF-8]] encoding in newer software. Port 411 is the default port for hubs, and 412 for client-to-client connections. If either of these ports is already in use, the port number is incremented until the number of a free port is found for use. For example, if 411, 412 and 413 are 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; instead, users are identified with their nickname on a hub-to-hub basis. An incoming request for a client-client connection cannot be linked with an actual connection.<ref>{{cite web|url=http://dcpp.wordpress.com/2007/08/03/ctm-tokens-in-adc-or-why-the-nmdc-protocol-is-terrible-part-2/|title=CTM tokens in ADC (or why the NMDC protocol is terrible, part 2)|access-date=2007-10-07|date=August 2007|publisher=DC++: Just These Guys, Ya Know?|archive-date=2007-10-15|archive-url=https://web.archive.org/web/20071015195823/http://dcpp.wordpress.com/2007/08/03/ctm-tokens-in-adc-or-why-the-nmdc-protocol-is-terrible-part-2/|url-status=live}}</ref> A search result cannot be linked with a particular search.<ref>{{cite web|url=http://dcpp.wordpress.com/2006/06/04/filtering-redux/|title=Filtering Redux|access-date=2007-08-31|author=Todd Pederzani|date=June 2006|publisher=DC++: Just These Guys, Ya Know?|archive-date=2007-10-15|archive-url=https://web.archive.org/web/20071015190949/http://dcpp.wordpress.com/2006/06/04/filtering-redux/|url-status=live}}</ref> The ability to kick or move (redirect) a user to another hub is supported by the protocol. If a user is kicked, the hub is not required to give that user a specific reason, and there is no restriction on where a user can be redirected to. 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 accompanied by a reason. There is no [[HTTP referer]] equivalent. Hubs may send out user commands to clients. These commands are only raw protocol commands and are used 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 '+' indicates 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 on 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 given time and are controlled by the client. In client-to-client connections, the parties generate a random number to see who should be allowed to download first, and the client with the greater number wins. Transporting downloads and connecting to the hub requires [[Transmission Control Protocol|TCP]], while active searches use [[User Datagram Protocol|UDP]]. 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, while 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, but 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 and 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 [[delimiter]]s are "$", "|", and [[Whitespace character|{{unichar|0020|space}}]]. Protocol have for them (and few others) [[escape sequence]] and most software use them correctly in login (Lock to Key) sequence. For some reason that [[escape sequence]] was ignored by DC++ developers and they use [[HTML]] equivalent if these characters are to be viewed by the user. Continued interest exists in features such as ratings and language packs. The authors of DC++ also proposed a complete replacement of the Direct Connect protocol called ADC, or unofficially, Advanced Direct Connect. ADC uses the same [[network topology]], concepts, and terminology as the original protocol.<ref>{{cite web|url=https://adc.dcbase.org/Protocol#abstract|title=ADC Protocol|accessdate=2020-12-21|author=Jacek Sieka and Fredrik Ullner|date=January 2019|publisher=DCNF|archive-date=2020-12-01|archive-url=https://web.archive.org/web/20201201024149/https://adc.dcbase.org/Protocol#abstract|url-status=live}}</ref> One example of an added feature to the protocol, in comparison with the original protocol, is the broadcasting of [[Merkle tree|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 independently of their names.
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Direct Connect (protocol)
(section)
Add topic