Added -[TCPConnection initToNetService:] to make it easier to use with Bonjour. This allowed me to simplify BLIPEchoClient quite a lot.
5 // Created by Jens Alfke on 5/24/08.
6 // Copyright 2008 Jens Alfke. All rights reserved.
7 // Adapted from Apple sample code "CocoaEcho":
8 // http://developer.apple.com/samplecode/CocoaEcho/index.html
11 #import <Cocoa/Cocoa.h>
12 @class BLIPConnection;
15 @interface BLIPEchoClient : NSObject
17 IBOutlet NSTextField * inputField;
18 IBOutlet NSTextField * responseField;
19 IBOutlet NSTableView * serverTableView;
21 NSNetServiceBrowser * _serviceBrowser;
22 NSMutableArray * _serviceList;
24 BLIPConnection *_connection;
27 @property (readonly) NSMutableArray *serviceList;
29 - (IBAction)sendText:(id)sender;