net_smartirc.reg

来自「视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.」· REG 代码 · 共 444 行 · 第 1/5 页

REG
444
字号
 - replaced all quotes by singlequotes where possible. - fixed wrong usage of message()* example2.php: - replaced all quotes by singlquotes where possible. - added benchmark test to the example";}i:4;a:4:{s:7:"version";s:5:"0.4.0";s:12:"release_date";s:10:"2002-11-26";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:2534:"v0.4.0------* phpSmartIRCclass.inc.php: - fixed serious socket bug   The buffer of the socket got full because only 512 bytes were read at once,   which caused losing some IRC messages that are comming fast like the MOTD.   Now it will read 10240 bytes at once, and doesn't loose any IRC message. - fixed sendbuffer   The sendbuffer will only be sent, when the class is fully connected and   registered on the IRC network. Before if a nickname collision happened,   all sent IRC commands from the buffer were ignored by the IRC server. - fixed socket status   Socket handling is now compatible with PHP 4.3 dev. - fixed $_nick   When the nickname got changed because of nickname is already in use,   $_nick  will be updated. (thanks for the hint to Andreas Streichardt). - fixed actionhandler ids (unregister caused that the other ids were  changed). - fixed TYPE_TOPIC to the right bitoperator value. - added a reference to the IRC class in actionhandler callbacks   WARNING: all user writtin methods have to be changed!!   method( &$data ) _has to be changed_ to method( &$irc, &$data )   If you don't change those, your IRC scripts will _not_ work anymore! - changed internal methodnames to _methodname - changed sendbuffer   Now it uses configurable senddelay, instead of static 2 messages     per second (send flood protection). - changed TYPEs   All TYPE_* are now bitwise constants, register_actionhandler() can now   react to more than one message type. - added TYPE_ACTION for those common /me messages. - added timeevents   Added method register_timehandler()   unregister_timeid() and   reordertimehandler(). Those timehandler   can be used to call methods in specified intervalls, e.g. for   timeevents. Added needed class CphpSmartIRCclass_timehandler. - moved all IRC related defines to defines.inc.php. - changed if() elseif() structures where possible to switch() for   clearer/faster code. - added more debug messages for actionhandler. - added unregister_actionhandler() and unregister_actionid() method.   Also added needed reorderactionhandler(), which is called after an   unregister methods was called. - added $data->channel to actionhandler callback.* defines.inc.php: - initial import.  - now all IRC related defines are now in this file instead of   phpSmartIRCclass.inc.php.* DOCUMENTATION: - updated/added methods description* example.php: - changed user function parameter to new style ( &$irc and &$data ). - added TYPE_NOTICE to query_test example.";}i:5;a:4:{s:7:"version";s:5:"0.5.0";s:12:"release_date";s:10:"2003-01-07";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:1895:"v0.5.0------fixes: - fixed critical bug in the main _rawreceive() for() loop, messages were lost.changes: - License changed from GPL to LGPL. - updated in all files the copyright year. - changed documentation tags in front of all methods to the phpDocumentator compatible format. - improved connect() errorhandling. - changed login() parameters to $nick, $realname, $usermode = 0, $username = null, $password = null. - changed join() parameters to $channelarray, $key = null. - changed kick() parameters to $channel, $nicknamearray, $reason = null. - changed listenFor() parameters to $messagetype   return value is now the result, instead the of a reference to the result parameter. - sendbuffer has now 3 queues: high, medium and low   high sends 2 messages, then 1 of medium   low is only send if high _and_ medium is empty. - select() call for sockets is strongly optimizednew: - phpDocumentator package tags. - include() for messagehandler.php (needed for the new API). - setChannelSynching() method, for enabling the channel synching. - setCtcpVersion() method, for changing the ctcp version reply string. - setReceiveTimeout() method, for changing the receive timeout. - setTransmitTimeout() method, for changing the transmit timeout.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?