boot_net: Prepare socket-specific TCP window size

Pass the desired window size from the socket to the service.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38530 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Andreas Färber
2010-09-04 22:36:35 +00:00
parent 7d415c01cc
commit 040b33980c
2 changed files with 19 additions and 9 deletions
+3 -1
View File
@@ -65,6 +65,7 @@ public:
ip_addr_t Address() const { return fAddress; }
uint16 Port() const { return fPort; }
uint16 WindowSize() const;
status_t Connect(ip_addr_t address, uint16 port);
status_t Close();
@@ -114,7 +115,8 @@ public:
status_t Send(uint16 sourcePort, ip_addr_t destinationAddress,
uint16 destinationPort, uint32 sequenceNumber,
uint32 acknowledgmentNumber, uint8 flags, ChainBuffer* buffer);
uint32 acknowledgmentNumber, uint8 flags, uint16 windowSize,
ChainBuffer* buffer);
void ProcessIncomingPackets();