sending and receiving messages
[[sending_and_receiving_messages]] last edit on
Apr 8, 2007
3:31 PM
by l1nx
This page is under development and subject to change!
You should then receive the following to confirm the message was sent:
NOTE: This may be incorrect. Was not able to check the exact format again but you should receive the value '10'
Sending Messages
The following message sent to the server will send a message:ln=LEN\000id=NUMBER\000cm=10\000ms=RECIPIENT\001MESSAGE\0011
- LEN - Length of message
- NUMBER - The number you used to register. Should be in this format: 27831234567
- RECIPIENT - The number of the user you want to send a message to. Should be in this format: 27839876543@mxit.co.za
- MESSAGE - Message to send
You should then receive the following to confirm the message was sent:
ln=LEN\00010
- LEN - Length of message
NOTE: This may be incorrect. Was not able to check the exact format again but you should receive the value '10'
Receiving Messages
The following would be sent from the server if you receive a message:ln=LEN\0009\0000\000SENDER\001TIMESTAMP\0011\000MESSAGE\002
- LEN - Length of message
- SENDER - Sender of message. Should be in this format: 2783987654@mxit.co.za
- TIMESTAMP - Unix timestamp of when the message was sent
- MESSAGE - Message