?? sms_protocol
字號:
SMS Daemon protocol 1998 v0.1 =============================Proposal for SMS Daemon protocol.This is a TCP-based protocol. The SMS Daemon listens on portXXXX. 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 feedcharacter. ----------------------------------------<EOL> - '\r\n' or '\n'USER - stringHOST - stringJOB ID - integer expressed in asciiLENGTH - integer expressed in ascii represents the number of bytes of data that are to followDATA - 8 Bit DataQUEUE NAME - String, no whitespaceSTATUS - 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 '-' ----------------------------------------
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -