MCPcopy Create free account
hub / github.com/antirez/smallchat / chatState

Class chatState

smallchat-server.c:58–64  ·  view source on GitHub ↗

This global structure encapsulates the global state of the chat. */

Source from the content-addressed store, hash-verified

56
57/* This global structure encapsulates the global state of the chat. */
58struct 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
66struct chatState *Chat; // Initialized at startup.
67

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected