What is the easiest way to configure a server to read data from incoming socket connections?

What is the easiest way (preferably without using third-party frameworks) in lens c, set up a simple server that listens for socket connections and reads data from clients line by line.

ie Ideally, you just need to create an instance of the "server" object, which will transmit the "client" objects back to which incoming data messages are received.

+3
source share
3 answers

This question has been open for a long time. There seems to be no standard way to do this. I ended up just writing native Objective-C code to port C

"", , .m .h , , , , , t .

0

- Cocoa

, , .

+3

, , .

, TcpListener() Google , . , Java.

+1

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


All Articles