00001 // 00002 // PeerServerDelegate.h 00003 // DistributedCalendar 00004 // 00005 // Created by Jagdish on 8/5/10. 00006 // Copyright 2010 __MyCompanyName__. All rights reserved. 00007 // 00008 00032 #import <Foundation/Foundation.h> 00033 00034 @class PeerServer, Connection; 00035 00039 @protocol PeerServerDelegate 00040 00041 00042 // Server has been terminated because of an error 00048 - (void)peerServerFailed:(PeerServer*)peerServer reason:(NSString*)reason; 00049 00050 00051 // Server has accepted a new connection and it needs to be processed 00056 - (void)handleNewConnection:(Connection*)connection; 00057 00058 00059 @end