+% Authentification d'un client.\r
+traiter_action("authentification", JSON, IP) ->\r
+ euphorik_protocole:login(JSON, IP);\r
+% Un client s'enregistre : (pseudo + password) ou de manière anonyme.\r
+traiter_action("register", JSON, IP) ->\r
+ euphorik_protocole:register(JSON, IP);\r
+% Modification du profile.\r
+traiter_action("set_profile", JSON, _) ->\r
+ euphorik_protocole:profile(JSON);\r
+% Un utilisateur attend un événement (par exemple l'arrivée d'un nouveau message).\r
+traiter_action("wait_event", JSON, _) ->\r
+ euphorik_protocole:wait_event(JSON);\r
+% Un utilisateur envoie un message.\r
+traiter_action("put_message", JSON, _) ->\r
+ euphorik_protocole:put_message(JSON);\r
+% Un ekMaster bannie un utilisateur (ip).\r
+traiter_action("ban", JSON, _) ->\r
+ euphorik_protocole:ban(JSON);\r
+% Un ekMaster slap un utilisateur.\r
+traiter_action("slap", JSON, _) ->\r
+ euphorik_protocole:slap(JSON);\r
+% Un ekMaster demande la liste des ips bannies.\r
+traiter_action("list_banned_ips", JSON, _) ->\r
+ euphorik_protocole:list_banned_ips(JSON);\r
+% Un ekMaster débannie une ip.\r
+traiter_action("unban", JSON, _) ->\r
+ euphorik_protocole:unban_ip(JSON).\r