Home > Software engineering >  Android development use Socket multithreaded communication, when more than one client almost at the
Android development use Socket multithreaded communication, when more than one client almost at the

Time:11-02

Android development use Socket multithreaded communication, each receives a client connection, is building a new thread to handle, when more than one client almost at the same time send message to the server, the server can receive, I write the program, the server can only receive one or sometimes gets stuck, receives less than a, why

CodePudding user response:

The novice seek counsel

CodePudding user response:

The server cannot concurrently cannot call server
A user of a thread model, small pressure, the more basic, not with the
Suggested search under "Windows socket five kinds of I/O model"

CodePudding user response:

Basically be to see you is how to deal with the server, whether for multiple connections have the right to receive the data

CodePudding user response:

Uh huh! To the demo, can accept?
  • Related