set TCP PUSH option on socket?

Gaspar Chilingarov nm@REDACTED
Thu Jan 27 17:01:52 CET 2005


Corrado Santoro wrote:
> Gaspar Chilingarov wrote:
> 
>> there is PUSH option in tcp which forces OS write packet to network as 
>> fast as possible after user called write function -- this is not the 
>> same as TCP_NODELAY -- which ... well , this is a quote from RFC :)
>>
>>   A sending TCP is allowed to collect data from the sending user and to
>>   send that data in segments at its own convenience, until the push
>>   function is signaled, then it must send all unsent data.  When a
>>   receiving TCP sees the PUSH flag, it must not wait for more data from
>>   the sending TCP before passing the data to the receiving process.
> 
> 
> In the BSD socket library the PUSH flag is not an option but it is 
> automatically handled by the kernels of sender and receiver machines. 
> Why do you want to control it?
> 
> --Corrado
> 

ok, ok.

finally i got what i want -- if i respond to telnet client with right 
set of options -- it will send characters one by one, but anyway -- 
tcpdump shows that packets have PUSH(not an URGENT) and ACK options 
set... equal to 0x0018 in hex


-- 
Gaspar Chilingarov
System Administrator

t +3749 419763
w www.web.am
e nm@REDACTED



More information about the erlang-questions mailing list