home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Pier Shareware 6
/
The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso
/
036
/
emxfix02.zip
/
emx
/
src
/
os2
/
select.h
< prev
next >
Wrap
C/C++ Source or Header
|
1994-12-21
|
2KB
|
56 lines
/* select.h -- Header file for select.c
Copyright (c) 1993-1994 by Eberhard Mattes
This file is part of emx.
emx is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
emx is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with emx; see the file COPYING. If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
As special exception, emx.dll can be distributed without source code
unless it has been changed. If you modify emx.dll, this exception
no longer applies and you must remove this paragraph from all source
files for emx.dll. */
#define SELECT_MAX_SOCKETS 32
struct select_data
{
SEMRECORD list[6];
fd_set rbits;
fd_set wbits;
fd_set ebits;
HMUX sem_mux;
BYTE sem_npipe_flag;
BYTE sem_kbd_flag;
BYTE sem_mux_flag;
BYTE socket_thread_flag;
int sem_count;
int ready_count;
int return_value;
ULONG timeout;
thread_data *td;
int socket_count;
int socket_nread;
int socket_nwrite;
int socket_nexcept;
int sockets[SELECT_MAX_SOCKETS];
int socketh[SELECT_MAX_SOCKETS];
};
extern HEV socket_sem;
extern HEV socket_done_sem;
extern HEV socket_start_sem;
extern BYTE select_socket_done;