Renamed src back to source, because I liked it better

This commit is contained in:
Barra Ó Catháin 2023-08-19 16:00:57 +01:00
parent e2ef744e87
commit 9801be3622
9 changed files with 46 additions and 0 deletions

View File

@ -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 <stddef.h>
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 <https://www.gnu.org/licenses/>.