 |
C-chat
|
Go to the documentation of this file.
6 #ifndef C_CHAT_CLIENT_H
7 #define C_CHAT_CLIENT_H
9 #include "../common/threads.h"
10 #include "../common/sockets.h"
11 #include "../common/constants.h"
20 long long downloadFileSize;
21 long long downloadedSize;
22 unsigned int downloadFileId;
25 extern Socket clientSocket;
63 #endif //C_CHAT_CLIENT_H
#define THREAD_ENTRY_POINT
A macro to declare a function meant to be used as an entry point for a thread.
Definition: threads.h:29
Information of a socket.
Definition: sockets.h:19
void receiveMessages()
Receives messages from the server and display them to the client.
Represents a thread.
Definition: threads.h:44
void setUsername(const char *username)
Notifies the server of username change.
Definition: client.c:165
THREAD_ENTRY_POINT sendMessage(void *data)
An entry point for a thread that gets user input and send it to server.
Definition: client.c:26
#define MAX_CONCURRENT_FILE_TRANSFER
Maximum concurrent transfer of file allowed per client.
Definition: constants.h:42
void commandHandler(const char *command)
Handles the command represented by the given string.