English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2006-03-24 (21:43)
From: Rong.Zhou@p...
Subject: Socket question

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