-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support synchronous proxies and error blocks
Both server and client connections now connect using initWithServiceName:
- Loading branch information
Showing
19 changed files
with
370 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// | ||
// NSPortNameServer.h | ||
// DetoxIPC | ||
// | ||
// Created by Leo Natan (Wix) on 10/17/19. | ||
// Copyright © 2019 LeoNatan. All rights reserved. | ||
// | ||
|
||
@import Foundation; | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface NSPortNameServer : NSObject | ||
|
||
+ (NSPortNameServer *)systemDefaultPortNameServer; | ||
|
||
- (nullable NSPort *)portForName:(NSString *)name; | ||
- (nullable NSPort *)portForName:(NSString *)name host:(nullable NSString *)host; | ||
|
||
- (BOOL)registerPort:(NSPort *)port name:(NSString *)name; | ||
|
||
- (BOOL)removePortForName:(NSString *)name; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// | ||
// Header.h | ||
// DetoxIPC | ||
// | ||
// Created by Leo Natan (Wix) on 10/16/19. | ||
// Copyright © 2019 LeoNatan. All rights reserved. | ||
// | ||
|
||
#define DTXIPC_DEPRECATED_API(x) __attribute__((deprecated(x))) | ||
|
||
extern NSErrorDomain const DTXIPCErrorDomain; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.