diff options
author | Matt Strapp <matt@mattstrapp.net> | 2022-04-25 19:09:12 -0500 |
---|---|---|
committer | Matt Strapp <matt@mattstrapp.net> | 2022-04-25 19:21:02 -0500 |
commit | 51247ec41133e04e0b0ee04cbf2e290ff26be03d (patch) | |
tree | bfca271e8365c624cc90695343530179a39e899c /include/comms.hpp | |
parent | e (diff) | |
download | csci4211-master.tar csci4211-master.tar.gz csci4211-master.tar.bz2 csci4211-master.tar.lz csci4211-master.tar.xz csci4211-master.tar.zst csci4211-master.zip |
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to 'include/comms.hpp')
-rw-r--r-- | include/comms.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/comms.hpp b/include/comms.hpp index 1b2a942..4db1807 100644 --- a/include/comms.hpp +++ b/include/comms.hpp @@ -1,3 +1,6 @@ +// Author Name: Matt Strapp +// Date: 25 April 2022 +// x500: strap012 #ifndef COMM_UTIL_H #define COMM_UTIL_H #include "util.hpp" @@ -8,7 +11,7 @@ struct CONN_STAT { // in struct timeb lastTime; // Last time this connection was used (used to detect // s2c closure) - bool recInitHeader; // False until initial header is recieved + bool recInitHeader; // False until initial header is received bool expectingHeader; // The message to be read is a header (irrelevent for // senders) enum LinkType linkType; // MESSAGE_LINK (persistent) or FILE_LINK (one off) @@ -20,7 +23,7 @@ struct CONN_STAT { // len --> 0) bool changeDirection; // Flag to change the direction of the connection once // the current communication finishes - bool shouldClose; // Flag to destroy this connection + bool shouldClose; // Flag to destroy this connection }; int Send_NonBlocking(int sockFD, BYTE *data, struct CONN_STAT *pStat, |