Some Comments
This commit is contained in:
@@ -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