swiftlang / swift-corelibs-foundation

The Foundation Project, providing core utilities, internationalization, and OS independence
swift.org
Apache License 2.0
5.3k stars 1.14k forks source link

[SR-2431] NSStream getStreamsToHost proposed changes needs implementation #4337

Closed swift-ci closed 5 years ago

swift-ci commented 8 years ago
Previous ID SR-2431
Radar None
Original Reporter DavidYangLiu (JIRA User)
Type Bug
Status Closed
Resolution Won't Do
Additional Detail from JIRA | | | |------------------|-----------------| |Votes | 1 | |Component/s | Foundation | |Labels | Bug | |Assignee | DavidYangLiu (JIRA) | |Priority | Medium | md5: 3905a0887e8c627adee24e15ba2ab486

Issue Description:

getStreamsToHost needs to be implemented.
getStreamsToHost is a critical blocker to many of the developer's development.

On the mailing list discussion of implementing the getStreamsToHost API as:
open class func getStreamsToHost(withName hostName: String, port: Int, inputStream: inout InputStream?, outputStream: inout NSOutputStream?)

Looks like for Linux there are underlying CFNetwork dependencies

swift-ci commented 7 years ago

Comment by Luis de la Rosa (JIRA)

I find it interesting that looks like a complete implementation at https://github.com/apple/swift-corelibs-foundation/pull/697/files but it was never merged.

swift-ci commented 5 years ago

Comment by David Liu (JIRA)

Issue is blocked by API discussion

// Discussion of this API is ongoing for its usage of AutoreleasingUnsafeMutablePointer