Guest User

Untitled

a guest
Sep 11th, 2012
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.44 KB | None | 0 0
  1. $bot = new PHPDClib();
  2. $bot->connect(array(
  3.         'host'                => 'localhost',
  4.         'port'                => '411',
  5.         'bind_ip'             => '0.0.0.0',
  6.  
  7.         'nickname'            => 'PHPDClib',
  8.         'password'            => '',
  9.         'description'         => 'DC++ Library sf.net/projects/phpdclibrary',
  10.         'email'               => '',
  11.         'connection'          => 'LAN(T1)',
  12.         'tag'                 => '<PHPDCLib++ V:1.1.3a,M:P,H:1/0/0,S:10>',
  13.         'sharesize'           => '0',
  14.        
  15.         'userlist'            => 0,
  16.  
  17.         'debug'               => 0,
  18.         'frequency_low'       => 300000,
  19.         'frequency_high'      => 1000,
  20.         'read_buffer_size'    => 256000,
  21.  
  22.         'func_chat_public'    => 'chat_public',
  23.         'func_chat_private'   => 'chat_private',
  24.         'func_event_handler'  => 'event_handler'
  25. ));
  26.  
  27. /**
  28.  * Callback function to receive public messages.
  29.  *
  30.  * @access public
  31.  * @param string $from
  32.  * @param string $msg
  33.  * @param object $o
  34.  * @example void chat_public(string $from, string $msg, object $o)
  35.  */
  36. function chat_public($from, $msg, $o)
  37. {
  38.    
  39. }
  40.  
  41. /**
  42.  * Callback function to receive private messages.
  43.  *
  44.  * @access public
  45.  * @param string $from
  46.  * @param string $msg
  47.  * @param object $o
  48.  * @example void chat_public(string $from, string $msg, object $o)
  49.  */
  50. function chat_private($from, $msg, $o)
  51. {  
  52.  
  53. }
  54.  
  55. /**
  56.  * Callback function is triggered when certain events occur.
  57.  *
  58.  * @access public
  59.  * @param string $event
  60.  * @param object $o
  61.  * @example void event_handler(string $event, object $o)
  62.  */
  63. function event_handler($event, $o)
  64. {
  65.  
  66. }
Advertisement
Add Comment
Please, Sign In to add comment