I’m writing a (linux based) network game that will accept connections at any point in the game. It uses a client/server organisation where any number of clients can be connected to the server. The server tells the
clients what they can see, and the client uses OpenGL to render this information. The server also uses OpenGL to render a view of everyone in the game (for administration purposes). The server waits for and accepts connections via the select() command.
The problem is that both the select() command and glutMainLoop() are blocking and I don’t see a way of
running both commands. Would it be possible to put the networking part in an OpenGL idle function? or would I have to do it some other way?
Any help at all would be appreciated.