The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Net::IPMessenger::CommandLine - Console Interface Command for IP Messenger

SYNOPSIS

    use Net::IPMessenger::CommandLine;

    my $ipmsg = Net::IPMessenger::CommandLine->new(
        ...
    );

    $ipmsg->join;
    ...

DESCRIPTION

Net::IPMessenger's sub class which adds console interface commands.

SUBROUTINE

by_addr

    for my $val ( sort by_addr values %{ $self->user } ) {
        ...
    }

Subroutine for sort. sorts user by IP address.

METHODS

dumper

Returns Data::Dumper-ed $self.

debuguserbyaddr

Sorts users by IP address and returns it.

socktest

Returns socket's peeraddr.

join

Clears all users and send broadcast ENTRY packet.

quit

Sends broadcast EXIT packet.

list

Lists up users and returns it.

messages

Shows message list which you've got.

read

Reads oldest message and deletes it.

write

Starts writing message to the target.

writing

Adds message body to the message buffer. When only '.' line is input, sends message buffer to the target and clears message buffer.

is_writing

Checks if you are actually writing a message.

info

Shows your information.

help

Shows help message.

j

Shortcut of join.

q

Shortcut of quit.

l

Shortcut of list.

m

Shortcut of messages.

r

Shortcut of read.

w

Shortcut of write.

i

Shortcut of info.

h

Shortcut of help.