- TOC protocol
The TOC protocol, or Talk to OSCAR protocol, was a protocol used by some third-party
AOL Instant Messenger clients and several clients thatAOL produced itself. Sometime nearAugust 19 2005 , AOL discontinued support for the protocol and no longer uses it in any of the instant messaging clients it actively maintains, such as its Windows and Mac clients for the AOL Instant Messenger andICQ systems. However, it once did produce several of its own TOC clients, includingTiK and TAC which are written inTcl /Tk, TNT which is written inEmacs Lisp, all of which are open source, and a Java client originally called TIC which later became theQuick Buddy web applet. AOL also provided the TOC protocol specification openly to developers in the hopes that they will use it instead of theproprietary OSCAR protocol they use themselves. TheTOC2 protocol is still supported.TOC was an
ASCII -based protocol, while OSCAR is a binary protocol. In addition, TOC contained fewer features than its OSCAR counterpart. OSCAR provides such functionality asbuddy icon s, file transfer, andadvertising .How it works
TOC acted as a
wrapper for the OSCAR protocol. In the grand scheme of things, the TOC server was nothing but an OSCAR client that happened to listen on asocket , translating messages between the two protocols. Upon login, the TOC client specified an OSCAR login server (presumably either login.oscar.aol.com or login.icq.com) that the TOC server used on behalf of the client.TOC used
FLAP to encapsulate its messages just as OSCAR does, however, FLAP has been hacked in such a way that it can be implemented on the same port as anHTTP server. By default, the TOC server operated in HTTP mode, indistinguishable from a typical web server. If a connecting client, in place of an HTTP request, writes the string "FLAPON" followed by twoCRLF s, TOC would switch gears and start reading FLAP messages. Upon getting a user's profile, the client was expected to re-connect to TOC and use it as an HTTP server, which would host the user's profile inHTML .Once connected, two basic message formats for communications inside of FLAP existed. Client-to-server messages were sent in a format resembling a
Unix -style command line: commands withwhitespace -separated arguments, quoting andbackslash escape sequence s. Server-to-client messages were much simpler: they were sent as colon-separatedASCII strings, in a manner similar to manyUnix config files. Thus, it was quite easy to write a client, as the incoming messages were very easy to parse, and outgoing commands were easy to generate.This is in contrast to OSCAR, which due to the binary representation of data can be more difficult to understand.
ee also
*
Comparison of instant messaging protocols External links
* [http://terraim.cvs.sourceforge.net/*checkout*/terraim/terraim/src/toc/TOC1.txt TOC1 Protocol specification]
* [http://terraim.cvs.sourceforge.net/*checkout*/terraim/terraim/src/toc/TOC2.txt TOC2 Protocol specification]
* [http://gridley.res.carleton.edu/~straitm/final/ History of AIM, OSCAR and TOC]Implementations
May be erroneous:
* [http://www.jamwt.com/Py-TOC/ Py-TOC] (python)
* [http://search.cpan.org/dist/Net-AIM/AIM.pm Net::AIM] (perl)
* [http://sourceforge.net/projects/phptoclib/ PHPTocLib] (php)
* [http://www.therisenrealm.com/scripts/bluetoc/ BlueTOC] (php)
* [http://tik.sourceforge.net Tik] (Tcl/Tk)
* [http://tnt.sourceforge.net TNT] (Emacs Lisp)
* [http://users.tmok.com/~smike/ TAC] (Tcl, non-GUI)
* [http://toc.oscar.aol.com AOL Quick Buddy Applet (TIC)] (Java Applet)
*naim (ncurses, non-GUI)
* [http://www.miniaim.net miniaim] (C++)References
Wikimedia Foundation. 2010.