2 * Copyright (c) 2002-2003 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
21 * @APPLE_LICENSE_HEADER_END@
23 Change History (most recent first):
26 Revision 1.8 2003/08/12 19:56:26 cheshire
29 Revision 1.7 2003/07/02 21:19:59 cheshire
30 <rdar://problem/3313413> Update copyright notices, etc., in source code comments
32 Revision 1.6 2003/03/13 03:46:21 cheshire
33 Fixes to make the code build on Linux
35 Revision 1.5 2003/03/08 00:35:56 cheshire
36 Switched to using new "mDNS_Execute" model (see "mDNSCore/Implementer Notes.txt")
38 Revision 1.4 2002/12/23 22:13:31 jgraessl
40 Reviewed by: Stuart Cheshire
41 Initial IPv6 support for mDNSResponder.
43 Revision 1.3 2002/09/21 20:44:53 zarzycki
46 Revision 1.2 2002/09/19 04:20:44 cheshire
47 Remove high-ascii characters that confuse some systems
49 Revision 1.1 2002/09/17 06:24:34 cheshire
54 #ifndef __mDNSPlatformPosix_h
55 #define __mDNSPlatformPosix_h
60 #define mDNSIPv6Support 1
67 // This is a global because debugf_() needs to be able to check its value
68 extern int gMDNSPlatformPosixVerboseLevel
;
70 struct mDNS_PlatformSupport_struct
72 // No additional data required for Posix at this time
75 extern mStatus
mDNSPlatformPosixRefreshInterfaceList(mDNS
*const m
);
76 // See comment in implementation.
78 // Call mDNSPosixGetFDSet before calling select(), to update the parameters
79 // as may be necessary to meet the needs of the mDNSCore code.
80 // The timeout pointer MUST NOT be NULL.
81 // Set timeout->tv_sec to 0x3FFFFFFF if you want to have effectively no timeout
82 // After calling mDNSPosixGetFDSet(), call select(nfds, &readfds, NULL, NULL, &timeout); as usual
83 // After select() returns, call mDNSPosixProcessFDSet() to let mDNSCore do its work
84 extern void mDNSPosixGetFDSet(mDNS
*const m
, int *nfds
, fd_set
*readfds
, struct timeval
*timeout
);
85 extern void mDNSPosixProcessFDSet(mDNS
*const m
, fd_set
*readfds
);