Overview

Namespaces

  • Budabot
    • Core
      • Modules
    • User
      • Modules
  • None
  • Tyrence
    • Modules

Classes

  • AccessManager
  • AdminManager
  • AOChat
  • AOChatPacket
  • AOChatQueue
  • AOExtMsg
  • AsyncHttp
  • AutoInject
  • BotRunner
  • Budabot
  • BuddylistManager
  • CacheManager
  • CacheResult
  • ClassLoader
  • ColorSettingHandler
  • CommandAlias
  • CommandManager
  • ConfigFile
  • DB
  • DBRow
  • EventLoop
  • EventManager
  • GuildChannelCommandReply
  • GuildManager
  • HelpManager
  • Http
  • HttpRequest
  • LegacyLogger
  • LimitsController
  • LoggerWrapper
  • MMDBParser
  • NumberSettingHandler
  • OptionsSettingHandler
  • PlayerHistory
  • PlayerHistoryManager
  • PlayerManager
  • Preferences
  • PrivateChannelCommandReply
  • PrivateMessageCommandReply
  • Registry
  • SettingHandler
  • SettingManager
  • SettingObject
  • SocketManager
  • SocketNotifier
  • SubcommandManager
  • Text
  • TextSettingHandler
  • Timer
  • TimerEvent
  • TimeSettingHandler
  • Util
  • xml

Interfaces

  • CommandReply

Exceptions

  • InvalidHttpRequest
  • SQLException
  • StopExecutionException

Functions

  • isWindows
  • Overview
  • Namespace
  • Class

Class AOChat

Direct known subclasses

Budabot\Core\Budabot
Namespace: Budabot\Core
Located at AOChat.class.php
Methods summary
public
# __construct( )
public
# disconnect( )
public
# connect( $server, $port )
public
# iteration( )
public
# wait_for_packet( $time = 1 )
public
# read_data( $len )
public
# get_packet( )
public
# send_packet( $packet )
public
# authenticate( $username, $password )
public
# login( $char )
public
# lookup_user( $u )
public
# get_uid( $user )
public
# fixunsigned( $num )
public
# is_really_numeric( $num )
public
# lookup_group( $arg, $type = 0 )
public
# get_gid( $g )
public
# get_gname( $g )
public
# send_ping( )
public
# send_tell( $user, $msg, $blob = "\0", $priority = null )
public
# send_guild( $msg, $blob = "\0", $priority = null )
public
# send_group( $group, $msg, $blob = "\0", $priority = null )
public
# group_join( $group )
public
# group_leave( $group )
public
# group_status( $group )
public
# send_privgroup( $group, $msg, $blob = "\0" )
public
# privategroup_join( $group )
public
# privategroup_invite( $user )
public
# privategroup_kick( $user )
public
# privategroup_leave( $user )
public
# privategroup_kick_all( )
public
# buddy_add( $uid, $type = "\1" )
public
# buddy_remove( $uid )
public
# buddy_remove_unknown( )
public
# get_random_hex_key( $bits )
public
# bighexdec( $x )
public
# bigdechex( $x )
public
# bcmath_powm( $base, $exp, $mod )
public
# NegativeToUnsigned( $value )
public
# SafeDecHexReverseEndian( $value )
public
# ReduceTo32Bit( $value )
public
# generate_login_key( $servkey, $username, $password )
public
# aochat_crypt( $key, $str )
public
# aocrypt_permute( $x, $y )
public
# parse_ext_params( & $msg )
public
# b85g( & $str )
public
# readExtMsg( $msg )

New "extended" messages, parser and abstraction. These were introduced in 16.1. The messages use postscript base85 encoding (not ipv6 / rfc 1924 base85). They also use some custom encoding and references to further confuse things.

New "extended" messages, parser and abstraction. These were introduced in 16.1. The messages use postscript base85 encoding (not ipv6 / rfc 1924 base85). They also use some custom encoding and references to further confuse things.

Messages start with the magic marker ~& and end with ~ Messages begin with two base85 encoded numbers that define the category and instance of the message. After that there are an category/instance defined amount of variables which are prefixed by the variable type. A base85 encoded number takes 5 bytes. Variable types:

s: string, first byte is the length of the string i: signed integer (b85) u: unsigned integer (b85) f: float (b85) R: reference, b85 category and instance F: recursive encoding ~: end of message

Properties summary
public $id
#
public $gid
#
public $chars
#
public $char
#
public $grp
#
public $buddies
#
public $socket
#
public $last_packet
#
public $last_ping
#
public $chatqueue
#
public $mmdbParser
#
public $logger
#
Budabot 4 Docs API documentation generated by ApiGen