-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Added missing keys & values for NSStream #74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
|
@@ -169,53 +169,53 @@ public protocol NSStreamDelegate : class { | |
// NSString constants for the propertyForKey/setProperty:forKey: API | ||
// String constants for the setting of the socket security level. | ||
// use this as the key for setting one of the following values for the security level of the target stream. | ||
public let NSStreamSocketSecurityLevelKey: String = "" // NSUnimplemented | ||
public let NSStreamSocketSecurityLevelKey: String = "kCFStreamPropertySocketSecurityLevel" | ||
|
||
public let NSStreamSocketSecurityLevelNone: String = "" // NSUnimplemented | ||
public let NSStreamSocketSecurityLevelSSLv2: String = "" // NSUnimplemented | ||
public let NSStreamSocketSecurityLevelSSLv3: String = "" // NSUnimplemented | ||
public let NSStreamSocketSecurityLevelTLSv1: String = "" // NSUnimplemented | ||
public let NSStreamSocketSecurityLevelNegotiatedSSL: String = "" // NSUnimplemented | ||
public let NSStreamSocketSecurityLevelNone: String = "kCFStreamSocketSecurityLevelNone" | ||
public let NSStreamSocketSecurityLevelSSLv2: String = "NSStreamSocketSecurityLevelSSLv2" | ||
public let NSStreamSocketSecurityLevelSSLv3: String = "NSStreamSocketSecurityLevelSSLv3" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. kCFStreamSocketSecurityLevelSSLv3 |
||
public let NSStreamSocketSecurityLevelTLSv1: String = "kCFStreamSocketSecurityLevelTLSv1" | ||
public let NSStreamSocketSecurityLevelNegotiatedSSL: String = "kCFStreamSocketSecurityLevelNegotiatedSSL" | ||
|
||
public let NSStreamSOCKSProxyConfigurationKey: String = "" // NSUnimplemented | ||
public let NSStreamSOCKSProxyConfigurationKey: String = "kCFStreamPropertySOCKSProxy" | ||
// Value is an NSDictionary containing the key/value pairs below. The dictionary returned from SystemConfiguration for SOCKS proxies will work without alteration. | ||
|
||
public let NSStreamSOCKSProxyHostKey: String = "" // NSUnimplemented | ||
public let NSStreamSOCKSProxyHostKey: String = "NSStreamSOCKSProxyKey" | ||
// Value is an NSString | ||
public let NSStreamSOCKSProxyPortKey: String = "" // NSUnimplemented | ||
public let NSStreamSOCKSProxyPortKey: String = "NSStreamSOCKSPortKey" | ||
// Value is an NSNumber | ||
public let NSStreamSOCKSProxyVersionKey: String = "" // NSUnimplemented | ||
public let NSStreamSOCKSProxyVersionKey: String = "kCFStreamPropertySOCKSVersion" | ||
// Value is one of NSStreamSOCKSProxyVersion4 or NSStreamSOCKSProxyVersion5 | ||
public let NSStreamSOCKSProxyUserKey: String = "" // NSUnimplemented | ||
public let NSStreamSOCKSProxyUserKey: String = "kCFStreamPropertySOCKSUser" | ||
// Value is an NSString | ||
public let NSStreamSOCKSProxyPasswordKey: String = "" // NSUnimplemented | ||
public let NSStreamSOCKSProxyPasswordKey: String = "kCFStreamPropertySOCKSPassword" | ||
// Value is an NSString | ||
|
||
public let NSStreamSOCKSProxyVersion4: String = "" // NSUnimplemented | ||
public let NSStreamSOCKSProxyVersion4: String = "kCFStreamSocketSOCKSVersion4" | ||
// Value for NSStreamSOCKProxyVersionKey | ||
public let NSStreamSOCKSProxyVersion5: String = "" // NSUnimplemented | ||
public let NSStreamSOCKSProxyVersion5: String = "kCFStreamSocketSOCKSVersion5" | ||
// Value for NSStreamSOCKProxyVersionKey | ||
|
||
public let NSStreamDataWrittenToMemoryStreamKey: String = "" // NSUnimplemented | ||
public let NSStreamDataWrittenToMemoryStreamKey: String = "kCFStreamPropertyDataWritten" | ||
// Key for obtaining the data written to a memory stream. | ||
|
||
public let NSStreamFileCurrentOffsetKey: String = "" // NSUnimplemented | ||
public let NSStreamFileCurrentOffsetKey: String = "kCFStreamPropertyFileCurrentOffset" | ||
// Value is an NSNumber representing the current absolute offset of the stream. | ||
|
||
// NSString constants for error domains. | ||
public let NSStreamSocketSSLErrorDomain: String = "" // NSUnimplemented | ||
public let NSStreamSocketSSLErrorDomain: String = "NSStreamSocketSSLErrorDomain" | ||
// SSL errors are to be interpreted via <Security/SecureTransport.h> | ||
public let NSStreamSOCKSErrorDomain: String = "" // NSUnimplemented | ||
public let NSStreamSOCKSErrorDomain: String = "NSStreamSOCKSErrorDomain" | ||
|
||
// Property key to specify the type of service for the stream. This | ||
// allows the system to properly handle the request with respect to | ||
// routing, suspension behavior and other networking related attributes | ||
// appropriate for the given service type. The service types supported | ||
// are documented below. | ||
public let NSStreamNetworkServiceType: String = "" // NSUnimplemented | ||
public let NSStreamNetworkServiceType: String = "kCFStreamNetworkServiceType" | ||
// Supported network service types: | ||
public let NSStreamNetworkServiceTypeVoIP: String = "" // NSUnimplemented | ||
public let NSStreamNetworkServiceTypeVideo: String = "" // NSUnimplemented | ||
public let NSStreamNetworkServiceTypeBackground: String = "" // NSUnimplemented | ||
public let NSStreamNetworkServiceTypeVoice: String = "" // NSUnimplemented | ||
public let NSStreamNetworkServiceTypeVoIP: String = "kCFStreamNetworkServiceTypeVoIP" | ||
public let NSStreamNetworkServiceTypeVideo: String = "kCFStreamNetworkServiceTypeVideo" | ||
public let NSStreamNetworkServiceTypeBackground: String = "kCFStreamNetworkServiceTypeBackground" | ||
public let NSStreamNetworkServiceTypeVoice: String = "kCFStreamNetworkServiceTypeVoice" | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kCFStreamSocketSecurityLevelSSLv2