[][src]Module icb::packets

Structs

Packet

A Packet contains an identifier of the packet type and the functions responsible for creating a packet (create) and for parsing one (parse).

Constants

CMD_BEEP
CMD_BOOT
CMD_G
CMD_HELP

Create a new command packet. Based on the icbd server implementation the following commands can be issued: "?" -- help "beep" -- beep "boot" -- boot "g" -- change group "m" -- personal message "msg" -- personal message "name" -- change name "nobeep" -- disable beep "pass" -- pass moderator "topic" -- set topic "w" -- list users

CMD_M
CMD_MSG
CMD_NAME
CMD_NOBEEP
CMD_PASS
CMD_TOPIC
CMD_W
T_BEEP
T_COMMAND
T_ERROR
T_INVALID

Not a type indicated by the protocol, but one used in this library.

T_LOGIN
T_OPEN
T_PERSONAL
T_PROTOCOL
T_STATUS

Statics

BEEP

Beep beep

COMMAND

Command packet

LOGIN

Login packet, used to join the initial channel after connecting

OPEN

Open packet (normal chats)

PACKETS

These are all the valid packet types we know of.

PERSONAL

Personal message packet (direct chats)

PROTOCOL

Protocol packet

STATUS

Status packet