2020-01-13 10:17:30 -08:00
|
|
|
//
|
|
|
|
|
// ALTWiredConnection.h
|
|
|
|
|
// AltServer
|
|
|
|
|
//
|
|
|
|
|
// Created by Riley Testut on 1/10/20.
|
|
|
|
|
// Copyright © 2020 Riley Testut. All rights reserved.
|
|
|
|
|
//
|
|
|
|
|
|
2020-09-03 16:02:28 -07:00
|
|
|
#import "AltSign.h"
|
2020-01-13 10:17:30 -08:00
|
|
|
|
2020-08-31 13:58:44 -07:00
|
|
|
#import "ALTConnection.h"
|
2020-06-04 19:06:13 -07:00
|
|
|
|
2020-01-13 10:17:30 -08:00
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
|
|
NS_SWIFT_NAME(WiredConnection)
|
2020-06-04 19:06:13 -07:00
|
|
|
@interface ALTWiredConnection : NSObject <ALTConnection>
|
|
|
|
|
|
|
|
|
|
@property (nonatomic, readonly, getter=isConnected) BOOL connected;
|
2020-01-13 10:17:30 -08:00
|
|
|
|
|
|
|
|
@property (nonatomic, copy, readonly) ALTDevice *device;
|
|
|
|
|
|
|
|
|
|
- (void)sendData:(NSData *)data completionHandler:(void (^)(BOOL, NSError * _Nullable))completionHandler;
|
|
|
|
|
- (void)receiveDataWithExpectedSize:(NSInteger)expectedSize completionHandler:(void (^)(NSData * _Nullable, NSError * _Nullable))completionHandler;
|
|
|
|
|
|
|
|
|
|
- (void)disconnect;
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|