summaryrefslogtreecommitdiffstats
path: root/otherlibs/win32unix/unix.ml
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>1999-02-24 16:35:33 +0000
committerXavier Leroy <xavier.leroy@inria.fr>1999-02-24 16:35:33 +0000
commitbe894f1d3a01f3679dfd98d48e93aedeb76d7d48 (patch)
treeb6faf6d1f113faa76e8135ed2f990accd98a5ea3 /otherlibs/win32unix/unix.ml
parent138526c31b34e1007a4ebba88f31996aba6f1ed9 (diff)
Retour en arriere sur les sockets asynchrones (ne marche pas avec tk)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2307 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/win32unix/unix.ml')
-rw-r--r--otherlibs/win32unix/unix.ml14
1 files changed, 3 insertions, 11 deletions
diff --git a/otherlibs/win32unix/unix.ml b/otherlibs/win32unix/unix.ml
index eb16b8a8c..17eecb0d8 100644
--- a/otherlibs/win32unix/unix.ml
+++ b/otherlibs/win32unix/unix.ml
@@ -476,18 +476,10 @@ type socket_option =
| SO_DONTROUTE
| SO_OOBINLINE
-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
+external socket : socket_domain -> socket_type -> int -> file_descr
+ = "unix_socket"
let socketpair dom ty proto = invalid_arg "Unix.socketpair not implemented"
-
-external accept_internal :
- file_descr -> bool -> file_descr * sockaddr = "unix_accept"
-let accept s = accept_internal s true
-let async_accept s = accept_internal s false
+external accept : file_descr -> file_descr * sockaddr = "unix_accept"
external bind : file_descr -> sockaddr -> unit = "unix_bind"
external connect : file_descr -> sockaddr -> unit = "unix_connect"
external listen : file_descr -> int -> unit = "unix_listen"