Usecase: Sent as a reply to the INFO command, this numeric returns human-readable information describing the server: e.g.Usecase: Sent as a reply to the NAMES command, this numeric specifies the end of a list of channel member names.Message: "-client-channel- :End of /NAMES list".Usecase: Sent as a reply to the LIST command, this numeric indicates the end of a LIST response.client count- is an integer indicating how many clients are joined to that channel. Usecase: Sent as a reply to the LIST command,information about a channel to the client.Message: "-client-channel-client count- :-topic-".Usecase: this numeric marks the start of a channel list.Message: "-client- Channel :Users Name".Usecase: When a server drops a command without processing it, this numeric MUST be sent to inform the client.Message: "-client-command- :Please wait a while and try again.".Usecase: Part of the post-registration greeting,.Message: "-client- :This server was created -datetime-".Usecase: Part of the post-registration greeting.Message: "-client- :Your host is -servername-, running version -version-". Message: "-client- :Welcome to the -networkname- Network, Usecase: After client registration.Implementations which include message tags need to allow additional bytes for the tags section of a message clients must allow 8191 additional bytes and servers must allow 4096 additional bytes. Most IRC servers limit messages to 512 bytes in length, including the trailing CR-LF characters. These message parts, and parameters themselves, are separated by one or more ASCII SPACE characters ‘(’ ', 0x20)`. parameters: If it exists, data relevant to this specific command.command: The specific command this message represents.**source**: Optional note of where the message came from, starting with(':', 0x3A)`.tags: Optional metadata on a message, starting with 0x40).The specific parts of an IRC message are: SPACE ::= %x20 *( %x20 ) space character(s)Ĭrlf ::= %x0D %x0A "carriage return" "linefeed" Messages have this format, as rough ABNF: message ::= SPACE] When sending messages, ensure that a pair of \r\n characters follows every single message your software sends out.If you encounter an empty message, silently ignore it. Only parse and process a message once you encounter the \r\n at the end of it. When reading messages from a stream, read the incoming data into a buffer.kick -> Forcibly removes client from channel ex: "/kick "Īn IRC message is a single line, delimited by a pair of CR ‘(’\r', 0x0D) andLF('.invites -> Invites nickname to the channel channel ex: "/invites ".list -> Lists all channels on the server ex: "/list".topic -> Allows the client to query or set the channel topic on channel ex: "/topic ".part -> Causes a user to leave the channels in the comma-separated list.join -> Makes the client join the channels in the comma-separated list, specifying the passwords, if needed ex: "/join ".names -> Returns a list of who is on the comma-separated list of, by channel name.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |