Application of socket on mobile phone

Source: Internet
Author: User

Usb
READ: PID vid--can only determine the device
Get the phone driver
Socket Fixed port communication

Wifi
PC in LAN, UDP packet (entire network segment)

Bluetooth
Paired

Bluetoothsocket

If zoomed in: can be divided into two major categories
1. Large data volume, high real-time transmission requirements
Chat Tools
Stock Trading
Precious metals Trading
2.
Small data volume, real-time transmission requirements are not high
Message push
Precision Marketing

How to implement method one
Mobile phone side:
Socket: Long link
The original socket was sent out close
Mobile phone about 1 minutes idle, hand recycling connection,
Harassment of the server every 30 seconds ensures a smooth connection

How to implement the method two:
Write a timer on the phone
10 minutes
1-hour data transmission UDP
The packet needs to contain the authentication information app + User ID
The server then returns a package

Application of socket on mobile phone

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.