Final
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user