1 /* -*- Mode: ObjC; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 #include <osl/conditn.hxx>
12 #import <CoreFoundation/CoreFoundation.h>
13 #import "OSXNetworkService.h"
16 @implementation OSXBonjourService
18 - (void) publishImpressRemoteServiceOnLocalNetworkWithName:(NSString *)sName
20 netService = [[NSNetService alloc] initWithDomain:@"local" type:@"_impressremote._tcp" name:sName port:1599];
22 if (netService != nil)
24 [netService setDelegate:self];
25 [netService scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode];
30 -(void)netService:(NSNetService *)aNetService
31 didNotPublish:(NSDictionary *)dict {
32 NSLog(@"Service %p did not publish: %@", aNetService, dict);
43 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */