00001 // 00002 // WelcomeViewController.h 00003 // DistributedCalendar 00004 // 00005 // Created by Jagdish on 7/21/10. 00006 // Copyright 2010 __MyCompanyName__. All rights reserved. 00007 // 00008 00031 #import <UIKit/UIKit.h> 00032 #import "PeerServer.h" 00033 #import "PeerServerDelegate.h" 00034 #import "ConnectionDelegate.h" 00035 00036 @class Request; 00037 00041 @interface WelcomeViewController : UIViewController <UITextFieldDelegate, PeerServerDelegate, ConnectionDelegate> { 00042 IBOutlet UITextField* input; 00043 00044 // We accept connections from other peers using an instance of the PeerServer class 00045 PeerServer* peerServer; 00047 // Container for all connected clients 00048 NSMutableSet* clients; 00049 } 00050 00051 // Will return the PeerServer object peerServer 00056 - (PeerServer *)peerServer; 00057 00058 00059 // Will broadcast message 00064 - (void)broadcastRequestMessage:(NSDictionary*)packet; 00065 00066 00067 @end