-
Notifications
You must be signed in to change notification settings - Fork 32
/
SSHConnector.h
47 lines (36 loc) · 1.39 KB
/
SSHConnector.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
//
// SSHConnector.h
// Sidestep
//
// Created by Chetan Surpur on 11/18/10.
// Copyright 2010 Chetan Surpur. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface SSHConnector : NSObject {
}
- (NSTask *)sshTaskWithUsername:(NSString *)username
withHostname:(NSString *)hostname
withRemotePort:(NSString *)remoteport
withLocalBindPort:(NSNumber *)localPort
withAdditionalArguments:(NSString *)additionalArgs
withSSHCompression:(BOOL)sshCompression;
- (BOOL)openSSHConnectionAndNotifyObject:(id)object
withOpeningSelector:(SEL)openingSelector
withSuccessSelector:(SEL)successSelector
withFailureSelector:(SEL)failureSelector
withUsername:(NSString *)username
withHostname:(NSString *)hostname
withRemotePort:(NSString *)remoteport
withLocalBindPort:(NSNumber *)localPort
withAdditionalArguments:(NSString *)additionalArgs
withSSHCompression:(BOOL)sshCompression;
- (BOOL)watchSSHConnectionAndOnOpenOrErrorNotifyObject:(id)object
withSuccessSelector:(SEL)successSelector
withFailureSelector:(SEL)failureSelector
withConnection:(NSTask *)connection;
- (void)watchSSHConnectionAndOnCloseNotifyObject:(id)object
withSelector:(SEL)selector
withConnection:(NSTask *)connection;
- (void)terminateSSHConnectionAttempt;
- (void)killSSHConnectionForPID :(int)pid;
@end