diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 1999-02-24 14:28:23 +0000 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 1999-02-24 14:28:23 +0000 |
commit | 6fb83c93fcf5a7687ebaf084daf3933ff23c22e9 (patch) | |
tree | f96b3483c79713502b609a5c947be2ced247edf2 /otherlibs/win32unix/unix.ml | |
parent | f735038ef693c1130eaed94e81cdeceeabdd8b16 (diff) |
Ajout de Unix.async_socket (a tester)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2303 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/win32unix/unix.ml')
-rw-r--r-- | otherlibs/win32unix/unix.ml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/otherlibs/win32unix/unix.ml b/otherlibs/win32unix/unix.ml index 17eecb0d8..188d95d89 100644 --- a/otherlibs/win32unix/unix.ml +++ b/otherlibs/win32unix/unix.ml @@ -476,8 +476,12 @@ type socket_option = | SO_DONTROUTE | SO_OOBINLINE -external socket : socket_domain -> socket_type -> int -> file_descr - = "unix_socket" +external socket_internal : + socket_domain -> socket_type -> int -> bool -> file_descr + = "unix_socket" + +let socket dom typ proto = socket_internal dom typ proto true +let async_socket dom typ proto = socket_internal dom typ proto false let socketpair dom ty proto = invalid_arg "Unix.socketpair not implemented" external accept : file_descr -> file_descr * sockaddr = "unix_accept" external bind : file_descr -> sockaddr -> unit = "unix_bind" |