SMS Daemon protocol 1998-1999 v0.1 ================================== Proposal for SMS Daemon protocol. This is a TCP-based protocol. The SMS Daemon listens on port XXXX. All commands are 4 characters long and are case insensitive. Operands are seperated by a single ASCII space character. The end of the command is indicated with an ASCII line feed character. ---------------------------------------- - '\r\n' or '\n' USER - string HOST - string JOB ID - integer expressed in ascii LENGTH - integer expressed in ascii represents the number of bytes of data that are to follow DATA - 8 Bit Data QUEUE NAME - String, no whitespace STATUS - A string of character no containing a USER ADDR - rfc complient address of user to send mail when this message has been sent - sucessfully or unsucessfully ---------------------------------------- Note '<-- ' indicates direction of data from client to SMS Server '--> ' indicates direction of data from SMS Server to client <-- USERUSER - Receive User Name <-- HOSTHOST - Receive Host Name <-- MAILUSER ADDR - Mail to user when sent <-- DATALENGTHDATA <-- SEND - Send Current Job <-- SENJJOB ID - Send Job <-- SENQQUEUE NAME - Send all jobs in queue <-- SENA - Send all jobs in all queues <-- DESTQUEUE NAME - Select a queue for current job <-- DEFR - Deferr current Job <-- STAJJOB ID - Status of Job <-- STAQQUEUE NAME - Status of queue <-- STAT - Status of all jobs in all queues <-- QUIT - Exit <-- INFO <-- HELP - List commands --> 200SMS Gateway Ready. - Greeting from SMS --> 210Ok. --> 220Goodbye. --> 230 - Help --> 231 - Info --> 232 - Job Status --> 233 - Queue Status --> 234 - General Status --> 500 Error. --> 510 Error Connection Terminated. --> 511 Error Command not understood. XXX- indicates that the resulting Data will be split over serveral lines. End of data is signified by matching XXX without trailing '-' ----------------------------------------