Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the simplest way to setup a server to read data from incoming socket connections?

What is the simplest way (preferably without using third party frameworks) in objective c, to setup a simple server that listens for socket connections, and reads data from the clients on a line by line basis.

ie Ideally you would just need to create an instance of a "server" object, that would pass "client" objects back to which receive incoming data messages.

like image 556
corydoras Avatar asked Nov 26 '25 01:11

corydoras


1 Answers

Have a look here How to Write a Cocoa Web Server

Maybe not the simplest solution but it gives a good insight of needed logic for a server

like image 80
epatel Avatar answered Nov 27 '25 21:11

epatel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!