#ifndef _C6STP_H
#define _C6STP_H

#define C6STP_VERSION		 "0.2.1"

/* --- Codes 1xx ------------------------------------------------------------ */

#define NEW_MESSAGE		 "100 new message:"
#define ADD_REQUEST_RECEIVED	 "101 add request has been received by server"

/* --- Codes 2xx ------------------------------------------------------------ */

#define CONNECTION_DONE		 "200 ok, connection to %s:%d done"
#define LOGIN_DONE		 "201 ok, you are logged in as %s"
#define STATUS_SELECTED		 "202 ok, status %s selected"
#define NETFRIEND_ADDED		 "203 ok, netfriend %s added"
#define NETFRIEND_REMOVED	 "204 ok, netfriend %s removed"
#define RECEIVER_SELECTED	 "205 ok, %s selected for message receiving"
#define CONNECTION_CLOSED	 "206 ok, connection correctly closed"
#define MESSAGE_SENT		 "207 ok, message sent"
#define WELCOME_MESSAGE		 "210 %s"
#define INFO_VERSION		 "280 C6STP version " C6STP_VERSION

/* --- Codes 3xx ------------------------------------------------------------ */

#define GENERIC_COMMUNICATION_ERROR "300 generic communication error (%m)"
#define INVALID_HOST		 "301 unknown or invalid host %s"
#define INVALID_PORT		 "302 invalid port %d"
#define CONNECTION_REFUSED	 "303 connection refused"
#define CONNECTION_TIMEOUT	 "304 connection timeout"
#define ALREADY_CONNECTED	 "305 you are already connected"
#define NOT_LOGGED		 "306 you are not logged in"
#define EOF_FROM_SERVER		 "309 EOF sent from server"
#define BAD_USER		 "310 bad user"
#define BAD_PASSWORD		 "311 bad password"
#define ALREADY_LOGGED		 "312 %s already logged in"
#define NOT_CONNECTED		 "313 must connect before"
#define CHAT_SERVER_DOWN	 "314 cannot connect the chat server"
#define INVALID_STATUS		 "319 invalid status %s"
#define INVALID_NICK		 "320 invalid nick %s"
#define NO_SUCH_RECEIVER	 "322 must specify a receiver name (nick/room)"

/* --- Codes 4xx ------------------------------------------------------------ */

#define INVALID_COMMAND		 "400 unknown or invalid command"
#define CANNOT_READ_COMMANDS	 "401 cannot read commands anymore"
#define CANNOT_GET_MEMORY	 "402 cannot get memory"
#define INVALID_PROTOCOL	 "407 invalid protocol"
#define SERVER_MAINTENANCE	 "408 server maintenance"
#define UNKNOWN_COMMAND		 "409 unknown command (%#04x)"
#define CANNOT_SEND_PACKET	 "410 cannot send packet"

/* --- Codes 6xx ------------------------------------------------------------ */

#define NETFRIEND_ONLINE	 "601 %s is online"
#define NETFRIEND_OFFLINE	 "602 %s is offline"

/* --- Codes 7xx ------------------------------------------------------------ */

#define SENDER_NICK		 "700 %s"
#define SENDER_SAYS		 "703 says: %s"

#endif   /* _C6STP_H */

