From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id XAA22692; Wed, 14 Aug 2002 23:47:08 +0200 (MET DST) Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id XAA22682 for ; Wed, 14 Aug 2002 23:47:07 +0200 (MET DST) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from hod.void.org (p5085D5FC.dip.t-dialin.net [80.133.213.252]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g7ELl6D21676 for ; Wed, 14 Aug 2002 23:47:07 +0200 (MET DST) Received: (from mamous@localhost) by hod.void.org (8.9.3/8.9.3) id VAA22149; Wed, 14 Aug 2002 21:46:42 GMT X-Authentication-Warning: hod.void.org: mamous set sender to leypold@informatik.uni-tuebingen.de using -f From: "M E Leypold @ labnet" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15706.53186.786701.723339@hod.void.org> Date: Wed, 14 Aug 2002 23:46:42 +0200 To: yrashk@openeas.org Cc: caml-list@inria.fr Subject: [Caml-list] Unix.recvfrom In-Reply-To: <02081400515700.24424@rashko.ilt.kharkov.ua> References: <02081400515700.24424@rashko.ilt.kharkov.ua> X-Mailer: VM 7.00 under Emacs 20.4.1 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Yurii A. Rashkovskii writes: > Hello, > > Can somebody clarify why Unix.recvfrom is so strange? It works, of course, > but is not really functional, as I can understand. > > val recvfrom : > file_descr -> string -> int -> int -> msg_flag list -> int * sockaddr > (** Receive data from an unconnected socket. *) I'd say it's just a really shallow wrapper around the original libc function. Regards -- Markus NAME recv, recvfrom, recvmsg - receive a message from a socket SYNOPSIS ... int recvfrom(int s, void *buf, int len, unsigned int flags struct sockaddr *from, int *fromlen); ... ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners