My question is, if you use an infinit loop what does your computer actually do conserning sockets.
And if i'm correct about this how can I listen to connections and accept them without using an infinite
loop, using the c programming langauge, and mayby using fcntl(). makes a connection not close I
read but nim not sure how to actually use it yet but i dont like using infinie loops for something my
computer isn't infinently looping. Id rather use something in the cprogram that commands what the
computer actually does. You can leave out the fcntl part if its not required but i like the function
because commands your computer to do something it does which is not close the connection.
Now I'm wondering if my computer is capable of leaveing a connection open without using an
infinite loop but if it can do it using a c programming infinite loop then how can i just leave a socket
open and accepting connections.. My opinion, the accept function should and doesn't do just that.
could anyone help me with this?