encyclopegia.org

Client-to-client protocol

Client-to-client protocol (CTCP) is a special type of communication between Internet Relay Chat (IRC) clients.[1] CTCP is a common protocol implemented by most major IRC clients in use today.[1] CTCP extends the original IRC protocol by allowing users to query other clients or channels, this causes all the clients in the channel to reply the CTCP, for specific information.[1] Additionally, CTCP can be used to encode messages that the raw IRC protocol would not allow to be sent over the link, such as messages containing newlines or the byte value 0 (NULL).[1] CTCP does not establish a direct connection between clients; however, it is commonly used to negotiate DCC connections.[2] CTCP allows users to query a remote client about the version of the client they are using (via CTCP VERSION ), or the time (via CTCP TIME ), among other things.[1] It is also used to implement the /me command (via CTCP ACTION ).[src]

Client-to-client protocol (CTCP) is a special type of communication between Internet Relay Chat (IRC) clients.[1] CTCP is a common protocol implemented by most major IRC clients in use today.[1] CTCP extends the original IRC protocol by allowing users to query other clients or channels, this causes all the clients in the channel to reply the CTCP, for specific information.[1] Additionally, CTCP can be used to encode messages that the raw IRC protocol would not allow to be sent over the link, such as messages containing newlines or the byte value 0 (NULL).[1] CTCP does not establish a direct connection between clients; however, it is commonly used to negotiate DCC connections.[2] CTCP allows users to query a remote client about the version of the client they are using (via CTCP VERSION ), or the time (via CTCP TIME ), among other things.[1] It is also used to implement the /me command (via CTCP ACTION ).[src] ==History== ircII was the first IRC client to implement the CTCP and DCC protocols.[1] The CTCP protocol was implemented by Michael Sandrof in 1990 for ircII version 2.1, while the DCC protocol was implemented by Troy Rollo in 1991 for version 2.1.2.[1] ==Structure== A CTCP message is implemented as a PRIVMSG or NOTICE where the first and last characters of the message are ASCII value 0x01.[src] Additionally, characters which would not be allowed in the IRC protocol are escaped.[src] Since a NOTICE as the standard should not generate a reply, CTCP messages are sent as PRIVMSG and the reply is implemented with a NOTICE instead of a PRIVMSG .[src] A CTCP query is initiated on most clients as follows: CTCP Where is the target nickname or channel, is the CTCP command (e.g.[2] VERSION ), and are additional information to be sent to the .[src] ==Common CTCP commands== CTCP commands and replies are client-specific; as such, depending on the IRC client, some of the following CTCP commands may not trigger a response, or will be formatted differently than what is shown here.[1] ===VERSION=== A CTCP VERSION request will return the name and version of the IRC client the target is using, and in some cases technical information such as the operating system, clock rate, CPU Manufacturer and CPU architecture/instruction set.[1] A sample reply for a CTCP VERSION request to a target that uses the HexChat client is: VERSION HexChat 2.9.1 [x86] / Windows 8 [1.46GHz] ===TIME=== A CTCP TIME request will return the local time of the target computer.[1] Depending on the IRC client, the reply may consist of the date, the time (either in 12-hour format or 24-hour format), the year (e.g.[src] 2012), and sometimes the time zone (e.g.[src] EST).[src] A sample reply for a CTCP TIME request to a target that uses the ChatZilla client is: TIME Fri 23 Nov 2012 19:26:42 EST ===PING=== A CTCP PING request will determine the ping rate that exists between two clients, usually through the server, though direct latency can be established over a DCC CHAT.[1] The CTCP PING command works by sending an (often) integer argument (a timestamp) to a target client; the target client then responds by supplying exactly the same numerical parameter.[1] The difference between the original timestamp and the current timestamp is calculated, with the result being displayed to the user that initiated the CTCP PING.[src] More often than not, a timestamp that utilises milliseconds is used due to the majority of users with broadband Internet connections having a ping under 1 second.[src] A sample CTCP PING request to target from the XChat client is: CTCP PING 23152511 Likewise, sample output generated from the difference (see above) is: Ping reply from : 0.53 second(s) ==See also== Internet Relay Chat (IRC) IRC client Comparison of Internet Relay Chat clients DCC (Direct Client-to-Client) ==References== ==External links== CTCP Details[1]

32 sentences · 32 cited inline · 3 references stored

References

  1. Internet Relay Chat: Client-to-Client Protocol (CTCP) . · retrieved 2026-09-23 · rev 1376440558
    Cite this reference

    MLA "Internet Relay Chat: Client-to-Client Protocol (CTCP) ." 2026-09-23. https://en.wikipedia.org/w/index.php?oldid=1376440558. Accessed 28 November 2026.

    Chicago "Internet Relay Chat: Client-to-Client Protocol (CTCP) ." 2026-09-23. https://en.wikipedia.org/w/index.php?oldid=1376440558.

    APA encyclopegia.org. (2026). Internet Relay Chat: Client-to-Client Protocol (CTCP) . Retrieved November 28, 2026, from https://en.wikipedia.org/w/index.php?oldid=1376440558

  2. See the 'NOTES' and 'source/ctcp.c' files included with [http://download.ircii.org/historical/unsorted/clients/unix/ircii/ircii-2.1.4e.tar.gz ircii-2.1.4e.tar.gz]dead link|date=August 2017 |bot=Inte . · retrieved 2026-09-23 · rev 1376440558
    Cite this reference

    MLA "See the 'NOTES' and 'source/ctcp.c' files included with [http://download.ircii.org/historical/unsorted/clients/unix/ircii/ircii-2.1.4e.tar.gz ircii-2.1.4e.tar.gz]dead link|date=August 2017 |bot=Inte ." See the 'NOTES' and 'source/ctcp. 2026-09-23. https://en.wikipedia.org/w/index.php?oldid=1376440558. Accessed 28 November 2026.

    Chicago "See the 'NOTES' and 'source/ctcp.c' files included with [http://download.ircii.org/historical/unsorted/clients/unix/ircii/ircii-2.1.4e.tar.gz ircii-2.1.4e.tar.gz]dead link|date=August 2017 |bot=Inte ." See the 'NOTES' and 'source/ctcp. 2026-09-23. https://en.wikipedia.org/w/index.php?oldid=1376440558.

    APA See the 'NOTES' and 'source/ctcp. (2026). See the 'NOTES' and 'source/ctcp.c' files included with [http://download.ircii.org/historical/unsorted/clients/unix/ircii/ircii-2.1.4e.tar.gz ircii-2.1.4e.tar.gz]dead link|date=August 2017 |bot=Inte . Retrieved November 28, 2026, from https://en.wikipedia.org/w/index.php?oldid=1376440558

  3. See the 'UPDATES' and 'source/dcc.c' files included with [http://download.ircii.org/historical/unsorted/clients/unix/ircii/ircii-2.1.4e.tar.gz ircii-2.1.4e.tar.gz]dead link|date=August 2017 |bot=Int . · retrieved 2026-09-23 · rev 1376440558
    Cite this reference

    MLA "See the 'UPDATES' and 'source/dcc.c' files included with [http://download.ircii.org/historical/unsorted/clients/unix/ircii/ircii-2.1.4e.tar.gz ircii-2.1.4e.tar.gz]dead link|date=August 2017 |bot=Int ." See the 'UPDATES' and 'source/dcc. 2026-09-23. https://en.wikipedia.org/w/index.php?oldid=1376440558. Accessed 28 November 2026.

    Chicago "See the 'UPDATES' and 'source/dcc.c' files included with [http://download.ircii.org/historical/unsorted/clients/unix/ircii/ircii-2.1.4e.tar.gz ircii-2.1.4e.tar.gz]dead link|date=August 2017 |bot=Int ." See the 'UPDATES' and 'source/dcc. 2026-09-23. https://en.wikipedia.org/w/index.php?oldid=1376440558.

    APA See the 'UPDATES' and 'source/dcc. (2026). See the 'UPDATES' and 'source/dcc.c' files included with [http://download.ircii.org/historical/unsorted/clients/unix/ircii/ircii-2.1.4e.tar.gz ircii-2.1.4e.tar.gz]dead link|date=August 2017 |bot=Int . Retrieved November 28, 2026, from https://en.wikipedia.org/w/index.php?oldid=1376440558

Cite this article

MLA

"Client-to-client protocol." encyclopegia.org, 2026, https://encyclopegia.org/wiki/client-to-client-protocol. Accessed 28 November 2026.

Chicago

"Client-to-client protocol." encyclopegia.org. Accessed November 28, 2026. https://encyclopegia.org/wiki/client-to-client-protocol.

APA

encyclopegia.org. (2026). Client-to-client protocol. Retrieved November 28, 2026, from https://encyclopegia.org/wiki/client-to-client-protocol

Accessed November 28, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Border Gateway Protocol

stub · references available

Dynamic Host Configuration Protocol

stub · references available

Uqair Protocol of 1922

stub · references available

Extensible Provisioning Protocol

stub · references available

Montreal Protocol

stub · references available

Network News Transfer Protocol

stub · references available

The Client

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1376440558 · 0.5 · snapshot enwiki-001376440558

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.