-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathXboxProxyController.h
More file actions
40 lines (33 loc) · 951 Bytes
/
Copy pathXboxProxyController.h
File metadata and controls
40 lines (33 loc) · 951 Bytes
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
//
// XboxProxyController.h
// Slink
//
// Created by Tim Wu on 7/15/10.
// Copyright 2010 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "XboxProxy.h"
#import "PortMapper.h"
#import "PcapListener.h"
#define DEFAULT_PORT 30000
#define PORT_MAP_TIMEOUT 10
@interface XboxProxyController : NSObject {
XboxProxy * xboxProxy;
IBOutlet NSButton * startStopButton;
IBOutlet NSTextField * connectInfo;
IBOutlet NSPopUpButton * deviceSelection;
IBOutlet NSImageView * portMappingError;
IBOutlet NSProgressIndicator * portMappingSpinner;
NSNumber * mapExternalPort;
PortMapper * portMapper;
}
@property (assign) XboxProxy * xboxProxy;
@property (assign) NSNumber * mapExternalPort;
@property (assign) NSNumber * externalPort;
- (void) startup;
- (void) shutdown;
- (IBAction) toggleProxyState:(id) sender;
- (IBAction) connectToProxy:(id) sender;
- (void) openPortMapper;
- (void) handlePortMappingFinished;
@end