BLIP/Demo/BLIPEchoClient.h
author Jens Alfke <jens@mooseyard.com>
Sun May 25 13:43:03 2008 -0700 (2008-05-25)
changeset 7 5936db2c1987
parent 4 2bd9d60a2c46
child 26 cb9cdf247239
permissions -rw-r--r--
Added -[TCPConnection initToNetService:] to make it easier to use with Bonjour. This allowed me to simplify BLIPEchoClient quite a lot.
jens@3
     1
//
jens@3
     2
//  BLIPEchoClient.h
jens@3
     3
//  MYNetwork
jens@3
     4
//
jens@3
     5
//  Created by Jens Alfke on 5/24/08.
jens@3
     6
//  Copyright 2008 Jens Alfke. All rights reserved.
jens@4
     7
//  Adapted from Apple sample code "CocoaEcho":
jens@4
     8
//  http://developer.apple.com/samplecode/CocoaEcho/index.html
jens@3
     9
//
jens@3
    10
jens@3
    11
#import <Cocoa/Cocoa.h>
jens@3
    12
@class BLIPConnection;
jens@3
    13
jens@3
    14
jens@3
    15
@interface BLIPEchoClient : NSObject
jens@3
    16
{
jens@3
    17
    IBOutlet NSTextField * inputField;
jens@3
    18
    IBOutlet NSTextField * responseField;
jens@3
    19
    IBOutlet NSTableView * serverTableView;
jens@3
    20
    
jens@3
    21
    NSNetServiceBrowser * _serviceBrowser;
jens@3
    22
    NSMutableArray * _serviceList;
jens@7
    23
jens@3
    24
    BLIPConnection *_connection;
jens@3
    25
}
jens@3
    26
jens@3
    27
@property (readonly) NSMutableArray *serviceList;
jens@3
    28
jens@3
    29
- (IBAction)sendText:(id)sender;
jens@3
    30
jens@3
    31
@end