home *** CD-ROM | disk | FTP | other *** search
/ The Net: Ultimate Internet Guide / WWLCD1.ISO / pc / java / in4wjcxu / other / irc / include / sock.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-14  |  1.4 KB  |  39 lines

  1. /************************************************************************
  2.  *   IRC - Internet Relay Chat, include/sock.h
  3.  *   Copyright (C) 1990 Jarkko Oikarinen and
  4.  *                      University of Oulu, Computing Center
  5.  *
  6.  *   This program is free software; you can redistribute it and/or modify
  7.  *   it under the terms of the GNU General Public License as published by
  8.  *   the Free Software Foundation; either version 1, or (at your option)
  9.  *   any later version.
  10.  *
  11.  *   This program is distributed in the hope that it will be useful,
  12.  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  *   GNU General Public License for more details.
  15.  *
  16.  *   You should have received a copy of the GNU General Public License
  17.  *   along with this program; if not, write to the Free Software
  18.  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  */
  20.  
  21. /*
  22.  * $Id: sock.h,v 6.1 1991/07/04 21:04:35 gruner stable gruner $
  23.  *
  24.  * $Log: sock.h,v $
  25.  * Revision 6.1  1991/07/04  21:04:35  gruner
  26.  * Revision 2.6.1 [released]
  27.  *
  28.  * Revision 6.0  1991/07/04  18:05:04  gruner
  29.  * frozen beta revision 2.6.1
  30.  *
  31.  */
  32.  
  33. #ifndef FD_ZERO
  34. #define FD_ZERO(set)      (((set)->fds_bits[0]) = 0)
  35. #define FD_SET(s1, set)   (((set)->fds_bits[0]) |= 1 << (s1))
  36. #define FD_ISSET(s1, set) (((set)->fds_bits[0]) & (1 << (s1)))
  37. #define FD_SETSIZE        30
  38. #endif
  39.