在特定端口j2me上接收短信 [英] Receive sms on specific port j2me

查看:63
本文介绍了在特定端口j2me上接收短信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发j2me应用程序.我需要在特定端口上接收短信.定义接收短信的最佳端口是哪个? 感谢您的建议

I am developing j2me app. I need to receive sms on specific port. Which is the best port to define for receiving sms? Thanks for advice

推荐答案

SMS规范( JSR 120 )表示您当时没有其他应用程序正在使用的端口,也没有下表中指定的任何端口.

The SMS spec (JSR 120) says you can't have a port that another app is using at that time, and also you can't have any of the ports that are specified in the following table.

出于安全原因,不允许Java应用程序将SMS消息发送到表A-4中列出的端口号.实现必须在 MessageConnection.send()方法,如果应用程序尝试将消息发送到这些端口号中的任何一个.

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.

表A-4:仅限SMS消息的端口号

端口号说明
2805 WAP WTA安全无连接会话服务
2923 WAP WTA安全会话服务
2948 WAP Push无连接会话服务(客户端)
2949 ; WAP推送安全的无连接会话服务(客户端)
5502 服务卡读取器
5503 互联网配置阅读器
5508 动态菜单控制协议
5511 邮件访问协议
5512 简单电子邮件通知
9200 WAP无连接会话服务
9201 WAP会话服务
9202 WAP安全无连接会话服务
9203 WAP安全会话服务
9207 WAP vCal Secure
49996 SyncML OTA配置
49999 WAP OTA配置

Port number Description
2805 WAP WTA secure connection-less session service
2923 WAP WTA secure session service
2948 WAP Push connectionless session service (client side)
2949 WAP Push secure connectionless session service (client side)
5502 Service Card reader
5503 Internet access configuration reader
5508 Dynamic Menu Control Protocol
5511 Message Access Protocol
5512 Simple Email Notification
9200 WAP connectionless session service
9201 WAP session service
9202 WAP secure connectionless session service
9203 WAP secure session service
9207 WAP vCal Secure
49996 SyncML OTA configuration
49999 WAP OTA configuration

奇怪的是,我看不到端口号的其他任何限制.我确定必须在某个地方进行设置,但是我在规范中找不到它.

Oddly, I can't see any restriction on any other values of the port number. I'm sure this must be set out somewhere but I can't find it in the spec.

但是,我强烈建议您限制端口号在1到65535之间.

However, I strongly suggest restricting yourself to port numbers between 1 and 65535.

这篇关于在特定端口j2me上接收短信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆