From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: weis Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id LAA03451 for caml-redistribution; Tue, 22 Feb 2000 11:52:55 +0100 (MET) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id IAA23904 for ; Tue, 22 Feb 2000 08:30:02 +0100 (MET) Received: from ropas.kaist.ac.kr (ropas.kaist.ac.kr [143.248.92.105]) by nez-perce.inria.fr (8.8.7/8.8.7) with ESMTP id IAA03104 for ; Tue, 22 Feb 2000 08:30:00 +0100 (MET) Received: (from bskim@localhost) by ropas.kaist.ac.kr (8.8.8H2/8.8.8) id QAA09460; Tue, 22 Feb 2000 16:29:52 +0900 (KST) Message-ID: <20000222162952.02632@ropas.kaist.ac.kr> Date: Tue, 22 Feb 2000 16:29:52 +0900 From: Bomshik Kim To: caml-list@inria.fr Subject: [Q] About Unix Library of Ocaml Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89i Sender: weis Hello~ I Have Some Questions About Unix Library 1) Why do these exceptions occur ? ---------------------------------------------------------- Objective Caml version 2.04 # open Unix ;; # let theSocket = socket PF_INET SOCK_STREAM 0 ;; val theSocket : Unix.file_descr = # let theSocket = socket PF_INET SOCK_DGRAM 0 ;; val theSocket : Unix.file_descr = # let theSocket = socket PF_INET SOCK_RAW 0 ;; Uncaught exception: Unix.Unix_error(1, "socket", "") # let theSocket = socket PF_INET SOCK_SEQPACKET 0 ;; Uncaught exception: Unix.Unix_error(45, "socket", "") # ---------------------------------------------------------- 2) What is the differences of 4 socket_type ? Stream socket, Datagram socket, Raw socket, Sequenced packets socket 3) Error with using connection function Could you let me know the error code(63) and why does this error occur? ----------------------------------------------------------- Objective Caml version 2.04 # open Unix ;; # let addr = inet_addr_of_string "***.***.***.***" ;; val addr : Unix.inet_addr = # let socketAddr = ADDR_INET( addr , 21 ) ;; val socketAddr : Unix.sockaddr = ADDR_INET (, 21) # let theSocket = socket PF_INET SOCK_STREAM 0 ;; val theSocket : Unix.file_descr = # connect theSocket socketAddr ;; Uncaught exception: Unix.Unix_error(63, "connect", "") ----------------------------------------------------------- 4) Where can I get more specific information(examples, docs, papers) about ocaml library especially unix library (in order to design & implement bigger network library of ocaml for building web-server, web-browser etc... ) @ thank you -bskim@ropas.kaist.ac.kr