PHP Classes

BlueTOC: AIM client using TOC instant messaging protocol

Recommend this page to a friend!
  Info   View files View files (15)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 57%Total: 2,452 All time: 1,586 This week: 673Up
Version License Categories
bluetoc 1.0.0GNU General Publi...Chat


This class is meant to act as an AIM instant messaging client using the TOC protocol (not OSCAR). ICQ is also supported by this class.

It can perform normal tasks such as receiving and sending instant messages, joining chats and other activities on the AIM network.

Applications can customize the interaction with the AIM network by the means event handling callback functions. The login and and other basic actions and events are covered.

All you need is to specify a user name and password to the class and it will sign on (but it will do nothing unless you set up event handlers).

This class supports all the open TOC protocol features such as: instant messages, chats, buddy lists, warning (evil-ing), profile information, member directory, rendezvous proposals, formatting nicknames, automatic messages, password changing, and setting idle.

Picture of sk89q
Name: sk89q <contact>
Classes: 8 packages by
Country: United States United States
Age: 35
All time rank: 22426 in United States United States
Week rank: 307 Down35 in United States United States Down
Innovation award
Innovation award
Nominee: 5x


################################ # BlueTOC 2.3.000 # Copyright 2004-2006 sk89q # Written by sk89q ################################ Introduction ================================ BlueTOC is an object oriented approach to AOL Instant Messenger for PHP-based applications. It utilizes AIM's TOC protocol (v2/v3) to connect, send instant messages, join chatrooms, and perform a number of other tasks. The majority of the functions in AIM and supported in AIM TOC 2 have been abstracted in BlueTOC to allow for flexibility and easeness of use. BlueTOC abstracts connection and listening entirely, and thus is more oriented in creating longer running applications, but it can be used to send individual instant messages (IMs) on the fly as well. We welcome all developers to try out BlueTOC to create their own unique inventions ranging from instant reports to online multiplayer games. License ================================ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

  Files folder image Files  
File Role Description
Files folder imagebluetoc (3 files, 1 directory)
Accessible without login Plain text file CHANGELOG Doc. Log of changes
Accessible without login HTML file docs.html Doc. COMPACT documentation
Accessible without login Plain text file ex_announcements.php Example Example PHP AIM IM list
Accessible without login Plain text file ex_chatter.php Example Chatroom bot example
Accessible without login Plain text file ex_icqlogin.php Example Example ICQ login test
Accessible without login Plain text file ex_multiplexlistener.php Example Example usage of MultiplexListener
Accessible without login Plain text file ex_thehappybot.php Example Example from tutorial
Plain text file LICENSE Lic. License
Accessible without login Plain text file README Data Read me! Basic introduction
Plain text file toc2_changes.txt Doc. TOC2 protocol specifications
Plain text file toc_protocal.txt Doc. TOC protocol specifications

  Files folder image Files  /  bluetoc  
File Role Description
Files folder imageEventHandlers (1 file)
  Plain text file AimClient.php Class Useful optional class with TOC functions
  Plain text file MultiplexListener.php Class Optional class to allow you to sign on to more than one account in the same script
  Plain text file TocProtocol.php Class Main class

  Files folder image Files  /  bluetoc  /  EventHandlers  
File Role Description
  Plain text file ObjectBased.php Class Object based event handler

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:1,586
This week:673Up
 User Ratings  
 All time