BLIP/Demo/BLIPEchoClient.h
author Jens Alfke <jens@mooseyard.com>
Wed Jun 04 21:09:45 2008 -0700 (2008-06-04)
changeset 14 bb5faa9995d5
parent 4 2bd9d60a2c46
child 26 cb9cdf247239
permissions -rw-r--r--
Python: Optimized frame sending somewhat (frame buffers are generated on the fly as the socket has room.)
     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