-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathSSHTunnel.h
60 lines (51 loc) · 1.4 KB
/
SSHTunnel.h
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#import <Cocoa/Cocoa.h>
@interface SSHTunnel : NSObject
{
int code;
NSArray *tunnelsLocal;
NSArray *tunnelsRemote;
BOOL shouldStop;
NSTask *task;
BOOL connAuth;
BOOL autoConnect;
NSPipe *stdErrPipe;
NSString *connName;
NSString *status;
NSString *connPort;
BOOL connRemote;
BOOL compression;
BOOL v1;
NSString * encryption;
BOOL socks4;
NSNumber *socks4p;
NSString *connUser;
NSString *connHost;
}
@property (copy) NSString *connName;
-(id)initWithName:(NSString*)aName;
-(id)initWithDictionary:(NSDictionary*)aDictionary;
+(id)tunnelWithName:(NSString*)aName;
+(NSArray*)tunnelsFromArray:(NSArray*)anArray;
-(void)addLocalTunnel:(NSDictionary*)aDictionary;
- (void)removeLocal:(int)index;
-(void)addRemoteTunnel:(NSDictionary*)aDictionary;
- (void)removeRemote:(int)index;
- (void)setLocalValue:(NSString*)aValue ofTunnel:(int)index forKey:(NSString*)key;
- (void)setRemoteValue:(NSString*)aValue ofTunnel:(int)index forKey:(NSString*)key;
#pragma mark -
#pragma mark Execution related
- (void)startTunnel;
- (void)stopTunnel;
- (void)toggleTunnel;
- (void)launchTunnel:(id)foo;
- (void)stdErr:(NSNotification*)aNotification;
- (BOOL)isRunning;
#pragma mark -
#pragma mark Getting tunnel informations
- (NSString*)status;
- (NSArray*)arguments;
- (NSDictionary*)dictionary;
#pragma mark -
#pragma mark Key/Value coding
- (NSImage*)icon;
@end