Lab2_web / Mbed 2 deprecated webserverBlinky

Dependencies:   mbed

Fork of webserverBlinky by RealTimeCompLab2

Files at this revision

API Documentation at this revision

Comitter:
nixnax
Date:
Sat Jul 29 00:40:00 2017 +0000
Parent:
96:e14f42ecff66
Child:
98:3babad0d1bd4
Commit message:
Window Size 700

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sat Jul 29 00:31:13 2017 +0000
+++ b/main.cpp	Sat Jul 29 00:40:00 2017 +0000
@@ -669,8 +669,8 @@
     int flagsOut = TCP_FLAG_ACK; // the default case is an ACK packet
     int flagsTCP = ((flagbitstcp[0]&1)<<8)|flagbitstcp[1]; // the tcp flags we received
 
-    windowsizetcp[0]=3; // tco window size = 3*256=768
-    windowsizetcp[1]=0; // tcp windows size low byte
+    windowsizetcp[0]=2; // tco window size = 700
+    windowsizetcp[1]=0xbc; // tcp windows size = 700
 
     int doFin = 0; // flag to see if we have to send an extra FIN message to shut down the link