NAME

Net::IPMessenger::RecvEventHandler - default event handler

SYNOPSIS

use Net::IPMessenger::RecvEventHandler;

...

$self->add_event_handler( new Net::IPMessenger::RecvEventHandler );

use Net::IPMessenger::RecvEventHandler;

DESCRIPTION

IP Messenger receive event handler. This is added default by Net::IPMessenger.

METHODS

BR_ENTRY

Replies ANSENTRY packet.

BR_EXIT

Deletes user from the user HASH.

ANSLIST

Parses message and deletes user from the user HASH (because user is an exchange server).

SENDMSG

Replies RECVMSG packet if the message has SENDCHECK flag. And adds message to the message ARRAY.

RECVMSG

Compare received message option field with messages in the queue. If matchs found, delete the message in the queue.

READMSG

Replies ANSREADMSG packet if the message has READCHECK flag.

GETINFO

Replies SENDINFO packet. Version message is "Net::IPMessenger-version".

GETPUBKEY

Replies ANSPUBKEY packet.

ANSPUBKEY

Gets RSA public key and store it.

SEE ALSO

Net::IPMessenger::EventHandler