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

2016-10-10 Thread Tony Parker via swift-corelibs-dev
Hi Bouke, There is currently no plan to open source the more modern versions of CFNetwork. We’ll have to replace its functionality in swift-corelibs-foundation. - Tony > On Oct 8, 2016, at 1:12 AM, Bouke Haarsma via swift-corelibs-dev > wrote: > > I'm running into the same issue as outlined

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

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

2016-03-15 Thread Philippe Hausler via swift-corelibs-dev
CFNetwork is a separate dynamic library that is lazily loaded via dlopen. So we don’t need to have CFNetwork present to build. > On Mar 15, 2016, at 10:51 AM, Max Howell wrote: > > For interests sake, how come it could link? > >> You are correct, those symbols are from CFNetwork which are not

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

2016-03-15 Thread Max Howell via swift-corelibs-dev
For interests sake, how come it could link? > You are correct, those symbols are from CFNetwork which are not yet > implemented on linux targets. CFStream is implemented but CFSocketStream is > not implemented in swift-corelibs-foundation. It could be technically > reasonable to port the open s

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

2016-03-15 Thread Tony Parker via swift-corelibs-dev
Hi Pushkar, Yes, this is used by “getStreamsToHostWithName”. I think we’ll have to come up with a replacement implementation here, either by starting with the old CFNetwork open source code or writing our own. - Tony > On Mar 15, 2016, at 8:00 AM, Pushkar N Kulkarni via swift-corelibs-dev >

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

2016-03-15 Thread Pushkar N Kulkarni via swift-corelibs-dev
Just to add to that:I am wondering if this would hamper the implementation of NSStream, NSInputStream and NSOutputStream for Linux.Pushkar N Kulkarni, IBM RuntimesSimplicity is prerequisite for reliability - Edsger W. Dijkstra -Pushkar N Kulkarni/India/IBM wrote: -To: swift-corelibs-dev@swi

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

2016-03-15 Thread Philippe Hausler via swift-corelibs-dev
You are correct, those symbols are from CFNetwork which are not yet implemented on linux targets. CFStream is implemented but CFSocketStream is not implemented in swift-corelibs-foundation. It could be technically reasonable to port the open source (very old) CFNetwork to linux. However I am fai

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

2016-03-15 Thread Pushkar N Kulkarni via swift-corelibs-dev
Hello all,  While attempting a simple Swift client-server program on Linux using CFSocket, I tried to create CFReadStream and CFWriteStream instances using CFStreamCreatePairWithSocket(_:_:_:_). The program compiles and links but it crashes with this:2016-03-15 10:30:17.791 Client[21389:5a501740] C