Objective-C networking - best practices?

后端 未结 5 1950
面向向阳花
面向向阳花 2020-12-29 11:22

I\'m building an Objective-C app that has both a server and a client. The client can send updates to the server, and the server needs to be able to send updates to each conn

5条回答
  •  南笙
    南笙 (楼主)
    2020-12-29 11:47

    When the server sends updates to the clients, it would probably be easier to just have one thread handle them all, and just use async sockets. Of course this would depend on how many clients you had to deal with too.

提交回复
热议问题