[swift-corelibs-dev] Create InputStream and OutputStream inside CFSocket accept callback on Linux

2016-10-11 Thread Bouke Haarsma via swift-corelibs-dev
Hi all, I've started working on an implementation of (NS)NetService (https://github.com/Bouke/NetService), in pure Swift. My goal is to stay close to the version in Cocoa. While I've got an intial working version, I've hit a snag. When publishing a NetService, you can also listen for connecti

Re: [swift-corelibs-dev] Cannot call CFStreamCreatePairWithSocket on Linux

2016-10-08 Thread Bouke Haarsma via swift-corelibs-dev
I'm running into the same issue as outlined in this post. Are there currently any plans on bringing CFNetwork to swift-corelibs? On 2016-03-15 15:07:15 +, Philippe Hausler via swift-corelibs-dev said: You are correct, those symbols are from CFNetwork which are not yet implemented on linux

[swift-corelibs-dev] mDNS -- NSNetService and related?

2016-06-18 Thread Bouke Haarsma via swift-corelibs-dev
Hello everyone, It appears that all classes related to mDNS are missing from the status page (https://github.com/apple/swift-corelibs-foundation/blob/master/Docs/Status.md ). Also no stubs for these classes are curre

Re: [swift-corelibs-dev] NSTask and try!

2016-05-14 Thread Bouke Haarsma via swift-corelibs-dev
On 2016-05-14 09:05:08 +, James Lee via swift-corelibs-dev said: Please excuse my ignorance, I have looked into the POSIX calls, but am I right in assuming that the EBADF is due to the test calling to a file that doesn't exist and that is just how OSX handles this case? The problem on OSX

Re: [swift-corelibs-dev] NSTask and try!

2016-05-14 Thread Bouke Haarsma via swift-corelibs-dev
The failing testcase is TestNSTask.test_pipe_stdout_and_stderr_same_pipe. The call to posix_spawn returns an error code 9 (EBADF). In order to avoid code repetition I've wrapped all posix calls with a throwing status code check; private func posix(_ code: Int32) throws { switch code {