home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / include / os2sock.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.4 KB  |  69 lines

  1. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. /* New file created by IBM-VPB050196 */
  20. #ifndef _OS2SOCK_H
  21. #define _OS2SOCK_H
  22. #if !defined(RC_INVOKED)
  23. #include "mcom_db.h"
  24. #endif
  25.  
  26. /*DSR050297 - this is based on types.h in the TCP/IP headers...               */
  27. /*I'm not including types.h because that causes all sorts of damage...        */
  28. #define MAXHOSTNAMELEN 120
  29.  
  30. #if defined(XP_OS2_DOUGSOCK)
  31. #ifndef BSD_SELECT
  32. #error you need BSD_SELECT defined in your command line for all files
  33. #endif
  34. #include <nerrno.h>
  35. #include <sys\socket.h>
  36. #include <sys\select.h>
  37. #include <sys\time.h>
  38. #include <sys\ioctl.h>
  39. #include <netdb.h>
  40. #include <utils.h>
  41.  
  42. #else
  43. /*DSR072196 - replaced many files with pmwsock.h...*/
  44. #include <pmwsock.h>
  45.  
  46. #ifndef IP_MULTICAST_IF
  47. #define IP_MULTICAST_IF    2            /* set/get IP multicast interface*/
  48. #define IP_MULTICAST_TTL   3            /* set/get IP multicast timetolive*/
  49. #define IP_MULTICAST_LOOP  4            /* set/get IP multicast loopback */
  50. #define IP_ADD_MEMBERSHIP  5            /* add  an IP group membership   */
  51. #define IP_DROP_MEMBERSHIP 6            /* drop an IP group membership   */
  52.  
  53. #define IP_DEFAULT_MULTICAST_TTL  1     /* normally limit m'casts to 1 hop */
  54. #define IP_DEFAULT_MULTICAST_LOOP 1     /* normally hear sends if a member */
  55. #define IP_MAX_MEMBERSHIPS       20     /* per socket; must fit in one mbuf*/
  56.  
  57. /*
  58.  * Argument structure for IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP.
  59.  */
  60. struct ip_mreq {
  61.         struct in_addr  imr_multiaddr;  /* IP multicast address of group */
  62.         struct in_addr  imr_interface;  /* local IP address of interface */
  63. };
  64. #endif
  65. #endif
  66.  
  67. #endif
  68.  
  69.