Version française
Home     About     Download     Resources     Contact us    
Browse thread
Socket question
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Rong.Zhou@p...
Subject: Socket question
Hi,

Can anyone tell me if there is a way in OCaml to *reliably* force a TCP
socket to send out its buffered messages? I noticed that flushing the
corresponding output channel of the socket does not *necessarily* cause
the message to be sent. I know in C/C++ one can use the "TCP_NODELAY"
socket option to solve this problem, but I couldn't find anything in
OCaml that does this. I'd appreciate if someone can give me some
pointers.

Thanks,
Rong