Some Comments
This commit is contained in:
1 parent
44dbf7813a
commit
745bce5ff4
2 files changed
+35
No files matched your search
@@ -13,7 +13,14 @@ typedef struct {
|
||||
int client_count;
|
||||
} Server;
|
||||
|
||||
/**
|
||||
* Setup the actual socket server
|
||||
*/
|
||||
Server StartServer(int port);
|
||||
|
||||
/**
|
||||
* Removes client and closes the connection
|
||||
*/
|
||||
void RemoveClient(Server* s, int index);
|
||||
|
||||
typedef struct {
|
||||
@@ -21,6 +28,9 @@ typedef struct {
|
||||
struct sockaddr_in address;
|
||||
} Client;
|
||||
|
||||
/**
|
||||
* Creates the Client object
|
||||
*/
|
||||
Client StartClient(char* host, int port);
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user