

If you're writing a fairly simple application that doesn't need to interface with other event-loop-based libraries, you can just call start() to begin communicating with the server. Returns true if the Net::ICQ object is connected to the server, and false if it is not. Note that after calling new() you must next call connect() before you can send and receive ICQ events.Īll of the following methods are instance methods you must call them on a Net::ICQ object (for example, $icq->start).Ĭonnects the Net::ICQ object to the server.ĭisconnects the Net::ICQ object from the server. If either a UIN or password is not provided either directly or through environment variables, new() will return undef. The built-in defaults (for server and port only) have the lowest priority. Server and port are optional, and default to '' and '4000', respectively.Īlso, environment variables will be checked as follows: uin - ICQ_UINĬonstructor parameters have the highest priority, then environment variables. The UIN and password to use are specified as the first two parameters. A Net::ICQ object represents a single user logged into a specific ICQ server. CONSTRUCTORĬreates a new Net::ICQ object.

Net::ICQ is a class implementing an ICQ client interface in pure Perl. $icq->send_event('CMD_SEND_MESSAGE', $params) $icq->add_handler('SRV_SYS_DELIVERED_MESS', \&on_msg) Net::ICQ - Pure Perl interface to an ICQ server SYNOPSIS use Net::ICQ
