erica / ibrowser

Please refer to the Chapter 13 samples instead. DEPRECATED Browse your normal (non-jailbroken) iPhone contents using a Web browser

This URL has Read+Write access

ibrowser / ShareController.h
100644 40 lines (33 sloc) 0.745 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#import <UIKit/UIKit.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
 
// To help cover my $99/year dev costs + iPhone hardware
#import "AdMob/AdMobDelegateProtocol.h"
#import "AdMob/AdMobView.h"
 
 
#define BUFSIZE 8096
 
#define STATUS_OFFLINE 0
#define STATUS_ATTEMPT 1
#define STATUS_ONLINE 2
 
@interface ShareController : UIViewController <AdMobDelegate>
{
NSString *cwd;
 
int serverStatus;
BOOL isServing;
int listenfd;
int ntries;
int chosenPort;
int socketfd;
}
- (void) stopService;
- (BOOL) isServing;
@end