I've learned how to use blocking sockets, but while moving into non-blocking sockets, I've gotten kind of confused. It seems the program has to be entirely restructured, and the examples I've seen have a message loop.
1. Can you use select sockets in command line?
2. Can you have a message loop in the command line?
3. Could someone explain to me how a select socket program is structured, and how to use threading?