tcp/ip realizes simultaneous display of connections between two mobile phones

app main interface

Please add image description

Option 1: TCP client

Insert image description here

Insert image description here

Insert image description here

Option 2: TCP server

Insert image description here

Insert image description here

Click on the item below to enter the curve drawing page.

  1. If it is a server side, it can directly enter the drawing interface without connecting to any device.
  2. If it is TCP, you cannot enter directly, otherwise it will prompt that it is not connected.
  3. The network connection cannot be placed in the main thread. The page calls the method, then receives the result and processes it and reminds it. The sub-thread handles the network process.
    Insert image description here

Guess you like

Origin blog.csdn.net/weixin_74239923/article/details/135297149