diff options
Diffstat (limited to 'winsup/cygwin/wsa_event.h')
-rw-r--r-- | winsup/cygwin/wsa_event.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/winsup/cygwin/wsa_event.h b/winsup/cygwin/wsa_event.h new file mode 100644 index 000000000..c5477431f --- /dev/null +++ b/winsup/cygwin/wsa_event.h @@ -0,0 +1,25 @@ +/* wsa_event.h: type definition of a wsock event storage structure. + + Copyright 2008 Red Hat, Inc. + +This file is part of Cygwin. + +This software is a copyrighted work licensed under the terms of the +Cygwin license. Please consult the file "CYGWIN_LICENSE" for +details. */ + +#ifndef _WSA_EVENT_H_ +#define _WSA_EVENT_H_ + +/* All Cygwin processes together can share 2048 sockets. */ +#define NUM_SOCKS (32768 / sizeof (wsa_event)) + +struct wsa_event +{ + LONG serial_number; + long events; + int connect_errorcode; + pid_t owner; +}; + +#endif /* _WSA_EVENT_H_ */ |