BLIP/Demo/BLIPEchoClient.h
author Jens Alfke <jens@mooseyard.com>
Wed Jun 04 17:11:20 2008 -0700 (2008-06-04)
changeset 13 84c2d38f924c
parent 4 2bd9d60a2c46
child 26 cb9cdf247239
permissions -rw-r--r--
Python implementation much improved. Can send requests now. Fully interoperable with Obj-C implementation's test cases.
     1 //
     2 //  BLIPEchoClient.h
     3 //  MYNetwork
     4 //
     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
     9 //
    10 
    11 #import <Cocoa/Cocoa.h>
    12 @class BLIPConnection;
    13 
    14 
    15 @interface BLIPEchoClient : NSObject
    16 {
    17     IBOutlet NSTextField * inputField;
    18     IBOutlet NSTextField * responseField;
    19     IBOutlet NSTableView * serverTableView;
    20     
    21     NSNetServiceBrowser * _serviceBrowser;
    22     NSMutableArray * _serviceList;
    23 
    24     BLIPConnection *_connection;
    25 }
    26 
    27 @property (readonly) NSMutableArray *serviceList;
    28 
    29 - (IBAction)sendText:(id)sender;
    30 
    31 @end