BLIP/Demo/BLIPEchoServer.h
author Jens Alfke <jens@mooseyard.com>
Fri May 30 13:54:38 2008 -0700 (2008-05-30)
changeset 9 980beba83fb7
permissions -rw-r--r--
Fixed a serious bug - a race condition where a data buffer in the writer's queue could be dealloced (not the NSData, but its bytes themselves) before the writer sent it, resulting in an EFAULT error.
jens@3
     1
//
jens@3
     2
//  BLIPEchoServer.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@3
     7
//
jens@3
     8
jens@3
     9
#import <Foundation/Foundation.h>
jens@3
    10
#import "BLIPConnection.h"
jens@3
    11
jens@3
    12
@interface BLIPEchoServer : NSObject <TCPListenerDelegate, BLIPConnectionDelegate>
jens@3
    13
{
jens@3
    14
    BLIPListener *_listener;
jens@3
    15
}
jens@3
    16
jens@3
    17
@end