2 * Copyright (c) 2003-2004 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
23 * @APPLE_LICENSE_HEADER_END@
25 Change History (most recent first):
28 Revision 1.1 2004/01/30 02:35:13 bradley
29 Rendezvous Message Exchange implementation for DNS-SD IPC on Windows.
33 //---------------------------------------------------------------------------------------------------------------------------
34 /*! @header RMxServer.h
36 @abstract Server-side implementation of the DNS-SD IPC API.
40 This listens for and accepts connections from IPC clients, starts server sessions, and acts as a mediator between the
41 "direct" (compiled-in mDNSCore) code and the IPC client.
44 #ifndef __RMx_SERVER__
45 #define __RMx_SERVER__
52 #pragma mark == RMx ==
55 //---------------------------------------------------------------------------------------------------------------------------
56 /*! @typedef RMxServerFlags
58 @abstract Flags to control how the server is stopped.
60 @constant kRMxServerFlagsNone No flags.
61 @constant kRMxServerFlagsAllowRemote Allow remote connections.
64 typedef uint32_t RMxServerFlags
;
66 #define kRMxServerFlagsNone 0
67 #define kRMxServerFlagsAllowRemote ( 1 << 0 )
69 //---------------------------------------------------------------------------------------------------------------------------
70 /*! @typedef RMxServerStopFlags
72 @abstract Flags to control how the server is stopped.
74 @constant kRMxServerStopFlagsNone No flags.
75 @constant kRMxServerStopFlagNoWait Do not wait for the server to stop (signal and return).
78 typedef uint32_t RMxServerStopFlags
;
80 #define kRMxServerStopFlagsNone 0
81 #define kRMxServerStopFlagsNoWait ( 1 << 0 )
83 //---------------------------------------------------------------------------------------------------------------------------
84 /*! @function RMxServerInitialize
86 @abstract Initializes the RMx server.
89 OSStatus
RMxServerInitialize( RMxServerFlags inFlags
);
91 //---------------------------------------------------------------------------------------------------------------------------
92 /*! @function RMxServerFinalize
94 @abstract Finalizes the RMx server.
97 void RMxServerFinalize( void );
99 //---------------------------------------------------------------------------------------------------------------------------
100 /*! @function RMxServerRun
102 @abstract Runs the RMx server. Does not return unless stopped or an error occurs.
105 OSStatus
RMxServerRun( void );
107 //---------------------------------------------------------------------------------------------------------------------------
108 /*! @function RMxServerStop
110 @abstract Stops the RMx server.
113 OSStatus
RMxServerStop( RMxServerStopFlags inFlags
);
119 #endif // __RMx_SERVER__