~ubuntu-branches/ubuntu/trusty/ocamlnet/trusty

« back to all changes in this revision

Viewing changes to src/netsys/netsys_pollset_win32.mli

  • Committer: Bazaar Package Importer
  • Author(s): Stéphane Glondu
  • Date: 2011-09-02 14:12:33 UTC
  • mfrom: (18.2.3 sid)
  • Revision ID: james.westby@ubuntu.com-20110902141233-zbj0ygxb92u6gy4z
Tags: 3.4-1
* New upstream release
  - add a new NetcgiRequire directive to ease dependency management
    (Closes: #637147)
  - remove patches that were applied upstream:
    + Added-missing-shebang-lines-in-example-shell-scripts
    + Try-also-ocamlc-for-POSIX-threads

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
(* $Id: netsys_pollset_win32.mli 1262 2009-08-31 18:14:21Z gerd $ *)
 
2
 
 
3
(** Pollsets for Win32 *)
 
4
 
 
5
open Netsys_pollset
 
6
 
 
7
exception Too_many_descriptors
 
8
 
 
9
val pollset : unit -> pollset
 
10
  (** This is a pollset implementation that works for 
 
11
       - sockets, and
 
12
       - named pipes as provided by {!Netsys_win32} (add the descriptors
 
13
         returned by [pipe_descr] or [pipe_server_descr] to the pollset)
 
14
 
 
15
      The number of descriptors that can be added to the pollset
 
16
      has a quite low limit (usually 63 sockets or 31 pipes).
 
17
      If the number is exceeded the exception [Too_many_descriptors]
 
18
      is raised (by [add]).
 
19
 
 
20
      POLLERR, POLLHUP, and POLLNVAL are not detected by this impl.
 
21
   *)
 
22
 
 
23
val threaded_pollset : unit -> pollset
 
24
  (** This implementation overcomes the limit on the number of descriptors 
 
25
      one can add
 
26
      to the set. It is, however, only available for multi-threaded
 
27
      programs, because it uses helper threads.
 
28
   *)
 
29
 
 
30
module Debug : sig
 
31
  val enable : bool ref
 
32
    (** Enables {!Netlog}-style debugging of this module  *)
 
33
end