使用Perl语言编写的webqq客户端

e73b 10年前

使用Perl语言编写的Webqq客户端

客户端异步框架

client
 |
 ->login()
    |
    |        +-------------------------<------------------------------+
    |        |                                                        |
    |->_recv_message()-[put]-> Webqq::Message::Queue -[get]-> on_receive_message()
    |
    |->send_message() -[put]--+                       +-[get]-> _send_message() ---+
    |                           \                   /                              +
    |->send_sess_message()-[put]-Webqq::Message::Queue-[get]->_send_sess_message()-+               
    |                              /              \                                +
    |->send_group_message()-[put]-+                +-[get]->_send_group_message()--+
    |                                                                              +
    |                          on_send_message() ---<---- msg->{cb} -------<-------+
    +->run()

安装步骤

   perl Makefile.PL
   make
   make test
   make install

核心依赖模块

  JE
  JSON
  Digest::MD5
  AnyEvent::UserAgent
  LWP::UserAgent
  LWP::Protocol::https

项目主页:http://www.open-open.com/lib/view/home/1420116961484