diff --git a/Zenith-latest-2021-05-12-15_53_03.iso b/Zenith-latest-2021-05-12-17_29_40.iso similarity index 99% rename from Zenith-latest-2021-05-12-15_53_03.iso rename to Zenith-latest-2021-05-12-17_29_40.iso index 8f9d34fc..593efda4 100755 Binary files a/Zenith-latest-2021-05-12-15_53_03.iso and b/Zenith-latest-2021-05-12-17_29_40.iso differ diff --git a/src/Home/Net/TCP/TCP.CC b/src/Home/Net/TCP/TCP.CC index 53d11491..e41f8e23 100755 --- a/src/Home/Net/TCP/TCP.CC +++ b/src/Home/Net/TCP/TCP.CC @@ -1057,6 +1057,7 @@ I64 TCPSocketConnect(CTCPSocket *tcp_socket, CSocketAddressStorage *address) } tcp_socket->connection_time = tS; + tcp_socket->receive_window = TCP_WINDOW_SIZE; tcp_socket->state = TCP_STATE_SYN_SENT; TCPSendFlags(tcp_socket, TCPF_SYN); diff --git a/src/Home/Net/Tests/TCPEchoClient.CC b/src/Home/Net/Tests/TCPEchoClient.CC index f6b8a455..b91d5639 100755 --- a/src/Home/Net/Tests/TCPEchoClient.CC +++ b/src/Home/Net/Tests/TCPEchoClient.CC @@ -1,17 +1,17 @@ CTCPSocket *tcp = TCPSocket(AF_INET); -U8 buffer_size = 16; -U8 *buffer = CAlloc(buffer_size); +//U8 buffer_size = 16; +//U8 *buffer = CAlloc(buffer_size); +U8 *buffer = "Hello world"; +U8 buffer_size = StrLen(buffer); CSocketAddressIPV4 *socket_addr = CAlloc(sizeof(CSocketAddressIPV4)); -*buffer = EndianU64(0xDEADBEEFC0DEFADE); +//*buffer = EndianU64(0xDEADBEEFC0DEFADE); U0 TCPTest() { tcp->timeout = TCP_TIMEOUT * 3; - ClassRep(tcp); - CIPV4Address addr; PresentationToNetwork(AF_INET, "10.0.2.7", &addr); @@ -19,6 +19,8 @@ U0 TCPTest() socket_addr->family = AF_INET; socket_addr->address.address = addr.address; + ClassRep(tcp); + "\nTrying to connect the socket\n"; if (TCPSocketConnect(tcp, socket_addr) == 0) "\nSocket connected.\n";