This commit is contained in:
2025-11-12 22:48:59 +00:00
parent 20271b1cdc
commit 92a71102c5
5 changed files with 11 additions and 3 deletions
+2 -2
View File
@@ -9,7 +9,7 @@
#include <sys/time.h>
#include <unistd.h>
#define SERVER_IP_ADDRESS "149.165.171.19"
#define SERVER_IP_ADDRESS "149.165.171.99"
#define SERVER_PORT 60019
#define METHOD_VERSION 1
@@ -51,7 +51,7 @@ int main(int argc, char *argv[])
// Set socket timeout to 5 seconds
struct timeval timeout;
timeout.tv_sec = 5;
timeout.tv_sec = 10;
timeout.tv_usec = 0;
setsockopt(socket_desc, SOL_SOCKET, SO_RCVTIMEO, &timeout, sizeof(timeout));
+9
View File
@@ -0,0 +1,9 @@
COS440 - HW4
Nicholas Pease
Observations / Findings
I found that when executing the client under method 1, the time required for the file system to write to the file would result
in dropped packets, and this process would extend for some time. Under method two, utilizing a much faster memcpy command,
this would not occur and most (if not all) packets would be delivered in the timeout window.
MD5 sum of RX file: 039fb37db0a6c9ceae6c84b3dad80191
BIN
View File
Binary file not shown.
-1
View File
File diff suppressed because one or more lines are too long