How do I ping a server in J2ME / BlackBerry?

How to ping a server in J2ME / BlackBerry using java? This seems basic, but I cannot find it in javadocs. Thank.

+3
source share
2 answers

If your goal is to determine if you have an Internet connection, the solution is much more complicated than the equivalent of sending a ping. BlackBerry is not a regular IP-connected host like your regular PC, and therefore has many different basic vehicles that you can use to connect to something over the Internet. These include:

  • WAP 1.0 (legacy transport, HTTP only)
  • WAP 2.0 (carrier proxy, usually HTTP, Socket sometimes)
  • MDS ( BES)
  • BIS-B ( RIM, BB).
  • TCP ( , , APN- )
  • Wi-Fi ( )

, .

BB OS 5.0, API ConnectionFactory. BB OS, RIM Network Diagnostic Tool, . , , , API-.

+3

Ping ICMP- , , , J2ME BlackBerry API . , , HTTP .

+4

Source: https://habr.com/ru/post/1737333/


All Articles