Real Software Forums
http://forums.realsoftware.com/

Adjusting the TCP Window (flow control)
http://forums.realsoftware.com/viewtopic.php?f=2&t=45741
Page 1 of 1

Author:  Nux [ Sat Oct 27, 2012 3:55 pm ]
Post subject:  Adjusting the TCP Window (flow control)

Hello All,

Does Realsoftware have the capability to adjust the TCP Window Size?
as in Flow control, and not the physical size of the icon on the window.
but more as in "Adjusting the functionality at Layer 4 of the OSI - Flow control of TCP behavior -- with adjusting the TCP Window for forcing the advertisement of the TCP Window to be small.. so I can effeciently transfer large files on slow links, that I do not have control over??

I've searched the Forums to see if this answer has come-up before, and to no avail.

Thank you in advance for reading and or replying

Thanks to all!!

Author:  shaosean [ Sun Oct 28, 2012 2:52 am ]
Post subject:  Re: Adjusting the TCP Window (flow control)

I think you can send a small amount of data and then use the Flush method of TCPSocket

Author:  Nux [ Thu Nov 01, 2012 9:40 pm ]
Post subject:  Re: Adjusting the TCP Window (flow control)

shaosean, thank you for the reply,

if I call Flush, does it tear down the 3-way handshake?


Thank you again

Author:  shaosean [ Fri Nov 02, 2012 12:24 am ]
Post subject:  Re: Adjusting the TCP Window (flow control)

Not certain what you mean by a three-way handshake, but I use it with a SSLSocket and the Wired protocol..

Author:  Nux [ Fri Nov 02, 2012 12:55 am ]
Post subject:  Re: Adjusting the TCP Window (flow control)

I think i've answered my own question about the tare down, I don't think the flush does, it sounds like it flushes the data from the buffer, and try's to send the data immediately?

the 3-way handshake is how TCP setups a connection to send information. the "client" will send a synchronized or SYN the sever will acknowledge the attempt with a Syn-ACK, the client will ack that and then send data.

thank you

Author:  shaosean [ Fri Nov 02, 2012 4:57 am ]
Post subject:  Re: Adjusting the TCP Window (flow control)

http://docs.realsoftware.com/index.php/Writeable.Flush

Quote:
Immediately sends the contents of internal write buffers to disk or to the output stream. This function can be useful in point-to-point communication over sockets and similar connections: To optimize for transmission performance, some types of output streams try to collect small pieces of written data into one larger piece for sending instead of sending each piece out individually. By calling Flush, the data collection is stopped and the data is sent without further delay, reducing latency.

Author:  Nux [ Fri Nov 02, 2012 2:59 pm ]
Post subject:  Re: Adjusting the TCP Window (flow control)

Thank you :oops:

should have read that first.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/