This global structure encapsulates the global state of the chat. */
| 56 | |
| 57 | /* This global structure encapsulates the global state of the chat. */ |
| 58 | struct chatState { |
| 59 | int serversock; // Listening server socket. |
| 60 | int numclients; // Number of connected clients right now. |
| 61 | int maxclient; // The greatest 'clients' slot populated. |
| 62 | struct client *clients[MAX_CLIENTS]; // Clients are set in the corresponding |
| 63 | // slot of their socket descriptor. |
| 64 | }; |
| 65 | |
| 66 | struct chatState *Chat; // Initialized at startup. |
| 67 |
nothing calls this directly
no outgoing calls
no test coverage detected