sms_protocol
上传用户:mei_mei897
上传日期:2007-01-05
资源大小:82k
文件大小:2k
- SMS Daemon protocol 1998 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.
- ----------------------------------------
- <EOL> - 'rn' 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 <LF>
- 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
- <-- USER<SP>USER<EOL> - Receive User Name
- <-- HOST<SP>HOST<EOL> - Receive Host Name
- <-- MAIL<SP>USER ADDR<EOL> - Mail to user when sent
- <-- DATA<SP>LENGTH<EOL>DATA<EOL>
- <-- SEND<EOL> - Send Current Job
- <-- SENJ<SP>JOB ID<EOL> - Send Job
- <-- SENQ<SP>QUEUE NAME<EOL> - Send all jobs in queue
- <-- SENA<EOL> - Send all jobs in all queues
- <-- DEST<SP>QUEUE NAME<EOL> - Select a queue for current job
- <-- DEFR<EOL> - Deferr current Job
- <-- STAJ<SP>JOB ID<EOL> - Status of Job
- <-- STAQ<SP>QUEUE NAME<EOL> - Status of queue
- <-- STAT<EOL> - Status of all jobs in all queues
- <-- QUIT<EOL> - Exit
- <-- INFO<EOL>
- <-- HELP<EOL> - List commands
- --> 200 SMS Gateway Ready.<EOL> - Greeting from SMS
- --> 210 Ok.<EOL>
- --> 220 Goodbye.<EOL>
- --> 230 <STATUS><EOL> - Help
- --> 231 <STATUS><EOL> - Info
- --> 232 <STATUS><EOL> - Job Status
- --> 233 <STATUS><EOL> - Queue Status
- --> 234 <STATUS><EOL> - General Status
- --> 500 Error.<EOL>
- --> 510 Error Connection Terminated.<EOL>
- --> 511 Error Command not understood.<EOL>
- XXX- indicates that the resulting Data will be split over
- serveral lines. End of data is signified by matching
- XXX without trailing '-'
- ----------------------------------------