e "meme" chat protocol Elliott Hird, December 2007 = Message format =============================================================== = \t[\t]\n is a base-10 number. is one of the valid commands (described below). = : [\t] is one of the valid argument names for the command. is any UTF-8 string -- to escape tabs, use '\t' in the message, and to escape backslashes, use '\.'. = Example session ============================================================== (Note: replace 8 spaces with a tab.) > = from client < = from server > 1 hello client: netcat user: ehird < 1 ok > 2 join room: main < 2 ok < - join room: main user: ehird > 3 say room: main text: Hello, world! < 3 ok < - say room: main user: ehird text: Hello, world! > 4 bye reason: quit < 4 ok = Server responses ============================================================= = \t[\t]\n and are the same as above, is either "ok" or "fail". The arguments given are command-specific. = Server messages ============================================================== = -\t[\t]\n is one of the valid server messages (described below). Most often resembles the message that triggered it.