NAME
Net::IPMessenger::ClientData - IP Messenger client(message) class
SYNOPSIS
use Net::IPMessenger::ClientData;
my $user = Net::IPMessenger::ClientData->new(
Message => $msg,
PeerAddr => $peeraddr,
PeerPort => $peerport,
);
my $key = $user->key;
DESCRIPTION
Converts IP Messenger message to the client object.
METHODS
new
my $user = Net::IPMessenger::ClientData->new(
Message => $msg,
PeerAddr => $peeraddr,
PeerPort => $peerport,
);
Creates object and parse message if there is message.
parse
$self->parse($message);
Parses a message string and stores to the accessor.
update_nickname
$self->update_nickname;
Converts option to the nickname, groupname.
nickname
my $nickname = $self->nickname;
Retrieves nickname.
key
my $key = $self->key;
Retrieves unique client key.
get_message
my $meesage = $self->get_message;
Retrieves option as message.