home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / lib / libnet / mkselect.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.4 KB  |  61 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. #ifndef MKSELECT_H
  20. #define MKSELECT_H
  21.  
  22. XP_BEGIN_PROTOS
  23.  
  24. extern void NET_SetReadPoll(PRFileDesc *fd); 
  25.  
  26. extern void NET_ClearReadPoll(PRFileDesc *fd);
  27.  
  28. extern void NET_SetConnectPoll(PRFileDesc *fd);
  29.  
  30. extern void NET_ClearConnectPoll(PRFileDesc *fd); 
  31.  
  32. /* this function turns on and off a reasonably slow timer that will
  33.  * push the netlib along even when it doesn't get any onIdle time.
  34.  * this is unfortunately necessary on windows because when a modal
  35.  * dialog is up it won't call the OnIdle loop which is currently the
  36.  * source of our events.
  37.  */
  38. extern void NET_SetNetlibSlowKickTimer(XP_Bool set);
  39.  
  40. /* set and clear the callnetliballthetime busy poller.
  41.  * all reference counting is done internally
  42.  *
  43.  * the caller string is used in debug builds to detect callers that
  44.  * don't set and clear correctly
  45.  */
  46. extern void NET_SetCallNetlibAllTheTime(MWContext *context, char *caller);
  47. extern void NET_ClearCallNetlibAllTheTime(MWContext *context, char *caller);
  48. extern XP_Bool NET_IsCallNetlibAllTheTimeSet(MWContext *context, char *caller);
  49.  
  50. extern void NET_SetReadSelect(MWContext *context, PRFileDesc *file_desc);
  51. extern void NET_ClearReadSelect(MWContext *context, PRFileDesc *file_desc);
  52. extern void NET_SetFileReadSelect(MWContext *context, int file_desc);
  53. extern void NET_ClearFileReadSelect(MWContext *context, int file_desc);
  54. extern void NET_SetConnectSelect(MWContext *context, PRFileDesc *file_desc);
  55. extern void NET_ClearConnectSelect(MWContext *context, PRFileDesc *file_desc);
  56. extern void NET_ClearDNSSelect(MWContext *context, PRFileDesc *file_desc);
  57.  
  58. XP_END_PROTOS
  59.  
  60. #endif /* MKSELECT_H */
  61.