We have to program a server and a client using event-driven programming - we use select(2)
to read from stdin and sockets. I'm making an interface for the client using the SDL2 and SDL2_TTF libraries. The problem is I don't know how to make select(2)
work for SDL text input events, so I cannot connect the client to my interface. How should I do that? Is there a file descriptor I can use to watch my input on the SDL window?
I forgot to mention: we have to use select(2)