diff --git a/src/.placeholder b/source/client/.placeholder similarity index 100% rename from src/.placeholder rename to source/client/.placeholder diff --git a/src/messages.c b/source/messages.c similarity index 100% rename from src/messages.c rename to source/messages.c diff --git a/src/messages.h b/source/messages.h similarity index 100% rename from src/messages.h rename to source/messages.h diff --git a/src/client/.placeholder b/source/server/.placeholder similarity index 100% rename from src/client/.placeholder rename to source/server/.placeholder diff --git a/source/server/connections.h b/source/server/connections.h new file mode 100644 index 0000000..0ecc0c2 --- /dev/null +++ b/source/server/connections.h @@ -0,0 +1,46 @@ +// ========================================= +// | SilverMUD Server - connections.h | +// | Copyright (C) 2023, Barra Ó Catháin | +// | See end of file for copyright notice. | +// ========================================= +#ifndef CONNECTIONS_H +#define CONNECTIONS_H +#include + +struct ClientConnection +{ + // TODO: Pointer to player struct. + int fileDescriptor; +}; + +struct ClientConnectionNode +{ + struct ClientConnection * connection; + struct ClientConnectionNode * next; +}; + +struct ClientConnectionList +{ + size_t clientCount; + struct ClientConnectionNode * head; + struct ClientConnectionNode * tail; +}; + + +#endif +// =================================================== +// | End of connections.h, copyright notice follows. | +// =================================================== + +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . diff --git a/src/server/main.c b/source/server/main.c similarity index 100% rename from src/server/main.c rename to source/server/main.c diff --git a/src/server/scheme-integration.c b/source/server/scheme-integration.c similarity index 100% rename from src/server/scheme-integration.c rename to source/server/scheme-integration.c diff --git a/src/server/scheme-integration.h b/source/server/scheme-integration.h similarity index 100% rename from src/server/scheme-integration.h rename to source/server/scheme-integration.h diff --git a/src/server/.placeholder b/src/server/.placeholder deleted file mode 100644 index e69de29..0000000