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 BAA14345; Fri, 28 Dec 2001 01:09:45 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 BAA13651 for ; Fri, 28 Dec 2001 01:09:44 +0100 (MET) Received: from mel-rto7.wanadoo.fr (smtp-out-7.wanadoo.fr [193.252.19.26]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id fBS09hT26002 for ; Fri, 28 Dec 2001 01:09:43 +0100 (MET) Received: from amyris.wanadoo.fr (193.252.19.150) by mel-rto7.wanadoo.fr; 28 Dec 2001 01:09:43 +0100 Received: from polux (80.11.44.171) by amyris.wanadoo.fr; 28 Dec 2001 01:09:36 +0100 Message-ID: <003001c18f33$eb30ea00$ab2c0b50@polux> From: "polux moon" To: "listcaml" Subject: [Caml-list] Unix.accept and Windows Date: Fri, 28 Dec 2001 01:09:29 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_002D_01C18F3C.4CC47E00" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk This is a multi-part message in MIME format. ------=_NextPart_000_002D_01C18F3C.4CC47E00 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Under Windows 2000 and Xp,=20 (the same code has no probleme under linux) i have a fonction wich create a socket like this let socket_acceuil =3D Unix.socket domain Unix.SOCK_STREAM 0 in Unix.bind socket_acceuil my_add_sock; Unix.listen socket_acceuil 1000; while true do message("Attente d un ami\n"); let (s_servA,caller)=3DUnix.accept socket_acceuil in ( message "ici" ; ignore ( Thread.create (reconnaitre_identite carnet s_servA) () ) ) done when i do a telnet on this socket for testing the program stop=20 the message "Attente d un ami" is printed" but "ici" is not printed is there something special about Unix.accept under windows ? ps:message simply do a printf and a flush ------=_NextPart_000_002D_01C18F3C.4CC47E00 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Under Windows 2000 and Xp, =
(the same code has no probleme under=20 linux)
i have a fonction wich create a socket = like=20 this
 
 let socket_acceuil =3D = Unix.socket domain=20 Unix.SOCK_STREAM 0 in
   Unix.bind socket_acceuil=20 my_add_sock;
   Unix.listen socket_acceuil = 1000;
  =20 while true do
     message("Attente d un=20 ami\n");
     let (s_servA,caller)=3DUnix.accept=20 socket_acceuil in (
       message = "ici"=20 ;
       ignore ( Thread.create=20 (reconnaitre_identite carnet s_servA) () )
    =  )
  =20 done
 
when i do a telnet on this socket for = testing the=20 program stop
the message "Attente d un ami" is = printed" but=20 "ici" is not printed
is there something special about = Unix.accept under=20 windows ?
 
ps:message simply do a printf and a=20 flush
------=_NextPart_000_002D_01C18F3C.4CC47E00-- ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr