I am reading WMA 1.1 specification and I can't understand whether the port number(1234) specified in the URL
string of client MessageConnection like
sms://+123456789:1234 is the port number for the device that is going to send a message or the port number on the other device that the application have to send message to...
Please have a look at the following sentences from WMA 1.1 specification..
The first application to allocate a given port number will get it. If other applications try to allocate the same port number while it is being used by the first application, an IOException will be thrown when they attempt to open the MessageConnection. The same rule applies if a port number is being used by a system application in the device. In this case, the Java applications will not be able to use that port number.
According to the paragraph above, the port number should be of the source device.... but have a look at the following again...
For security reasons, Java applications are not allowed to send SMS messages to the port numbers listed in Table A-4. Implementations MUST throw a SecurityException in the MessageConnection.send() method if an application tries to send a message to any of these port numbers.
So the port number should be on the another device that we are going to send the message...
Help please...
Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0