Cleaned up inputoutput.h
- Changed the comments about the data structures to be more descriptive about their function.
This commit is contained in:
parent
c753182827
commit
c2af4a551a
|
@ -26,14 +26,14 @@ typedef struct userMessage
|
||||||
char messageContent[MAX];
|
char messageContent[MAX];
|
||||||
} userMessage;
|
} userMessage;
|
||||||
|
|
||||||
// Contains a userMessage and a pointer to the playerInfo of the connection which sent it:
|
// Contains a message sent to the server and a pointer to the playerInfo of the connection which sent it:
|
||||||
typedef struct inputMessage
|
typedef struct inputMessage
|
||||||
{
|
{
|
||||||
playerInfo * sender;
|
playerInfo * sender;
|
||||||
userMessage * content;
|
userMessage * content;
|
||||||
} inputMessage;
|
} inputMessage;
|
||||||
|
|
||||||
// Contains a userMessage and pointers to the playerInfo of the recipients and the number of them:
|
// Contains a message to be sent, the amount of recipients, and pointers to their playerInfo:
|
||||||
typedef struct outputMessage
|
typedef struct outputMessage
|
||||||
{
|
{
|
||||||
int recipientsCount;
|
int recipientsCount;
|
||||||
|
@ -41,7 +41,7 @@ typedef struct outputMessage
|
||||||
playerInfo ** recipients;
|
playerInfo ** recipients;
|
||||||
} outputMessage;
|
} outputMessage;
|
||||||
|
|
||||||
// Contains the relevant parameters for the outputThreadLoop function:
|
// Contains pointers to the necessary information to be shared outputThreadHandler function:
|
||||||
typedef struct outputThreadParameters
|
typedef struct outputThreadParameters
|
||||||
{
|
{
|
||||||
queue * outputQueue;
|
queue * outputQueue;
|
||||||
|
|
Loading…
Reference in New Issue