File: sms_protocol

package info (click to toggle)
smsclient 2.0.8r-7
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,440 kB
  • ctags: 1,284
  • sloc: ansic: 13,440; makefile: 507; sh: 433; perl: 161
file content (73 lines) | stat: -rw-r--r-- 2,390 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
		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.

                ----------------------------------------

<EOL>      - '\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 <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<SP>SMS Gateway Ready.<EOL>		- Greeting from SMS
--> 210<SP>Ok.<EOL>			
--> 220<SP>Goodbye.<EOL>
--> 230<SP><STATUS><EOL>			- Help
--> 231<SP><STATUS><EOL>			- Info
--> 232<SP><STATUS><EOL>			- Job Status
--> 233<SP><STATUS><EOL>			- Queue Status
--> 234<SP><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 '-'

                ----------------------------------------