<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<title></title>
<meta name="Generator" content="Cocoa HTML Writer">
<meta name="CocoaVersion" content="1504">
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 15.0px; font: 12.0px Helvetica}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 15.0px; font: 12.0px Helvetica; min-height: 14.0px}
p.p3 {margin: 0.0px 0.0px 0.0px 12.0px; line-height: 18.0px; font: 16.0px Helvetica; color: #011892; -webkit-text-stroke: #000000}
p.p4 {margin: 0.0px 0.0px 0.0px 12.0px; line-height: 18.0px; font: 16.0px Helvetica; color: #011892; -webkit-text-stroke: #000000; min-height: 19.0px}
p.p5 {margin: 0.0px 0.0px 0.0px 12.0px; line-height: 16.0px; font: 13.0px Helvetica; color: #011892; -webkit-text-stroke: #000000; min-height: 16.0px}
p.p6 {margin: 0.0px 0.0px 0.0px 12.0px; line-height: 16.0px; font: 13.0px Helvetica; color: #011892; -webkit-text-stroke: #000000}
p.p7 {margin: 0.0px 0.0px 14.0px 12.0px; line-height: 16.0px; font: 14.0px Helvetica; color: #011892; -webkit-text-stroke: #000000}
p.p8 {margin: 0.0px 0.0px 0.0px 12.0px; line-height: 15.0px; font: 13.0px Helvetica; color: #011892; -webkit-text-stroke: #000000}
p.p9 {margin: 0.0px 0.0px 0.0px 12.0px; line-height: 16.0px; font: 14.0px Helvetica; color: #011892; -webkit-text-stroke: #000000; min-height: 17.0px}
p.p10 {margin: 0.0px 0.0px 0.0px 12.0px; line-height: 18.0px; font: 16.0px Helvetica; color: #011892; -webkit-text-stroke: #0000ee}
p.p11 {margin: 0.0px 0.0px 0.0px 12.0px; line-height: 14.0px; font: 12.0px Helvetica; color: #011892}
p.p12 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 14.0px; font: 12.0px Helvetica; min-height: 14.0px}
p.p13 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}
p.p14 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; color: #929292}
span.s1 {font-kerning: none}
span.s2 {text-decoration: underline ; font-kerning: none; -webkit-text-stroke: 0px #0000ee}
span.s3 {text-decoration: underline ; font-kerning: none}
</style>
</head>
<body>
<p class="p1">I'm running into the same issue as outlined in this post. Are there currently any plans on bringing CFNetwork to swift-corelibs?<span class="Apple-converted-space"> </span></p>
<p class="p2"><br></p>
<p class="p1">On 2016-03-15 15:07:15 +0000, Philippe Hausler via swift-corelibs-dev said:</p>
<p class="p2"><br></p>
<p class="p3"><span class="s1">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 fairly certain that would take a bit of work to get up and running; especially the Security framework portions.</span></p>
<p class="p4"><span class="s1"></span><br></p>
<p class="p3"><span class="s1">On Mar 15, 2016, at 7:54 AM, Pushkar N Kulkarni via swift-corelibs-dev <<a href="mailto:swift-corelibs-dev@swift.org"><span class="s2">swift-corelibs-dev@swift.org</span></a>> wrote:</span></p>
<p class="p5"><span class="s1"></span><br></p>
<p class="p6"><span class="s1">Hello all, </span></p>
<p class="p5"><span class="s1"></span><br></p>
<p class="p6"><span class="s1"> 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:</span></p>
<p class="p5"><span class="s1"></span><br></p>
<p class="p7"><span class="s1">2016-03-15 10:30:17.791 Client[21389:5a501740] CoreFoundation: failed to dynamically link symbol _CFSocketStreamCreatePair</span></p>
<p class="p7"><span class="s1">2016-03-15 10:30:17.791 Client[21389:5a501740] CoreFoundation: failed to dynamically link symbol _CFErrorCreateWithStreamError</span></p>
<p class="p7"><span class="s1">2016-03-15 10:30:17.791 Client[21389:5a501740] CoreFoundation: failed to dynamically link symbol _CFStreamErrorFromCFError</span></p>
<p class="p7"><span class="s1"><br>
</span></p>
<p class="p7"><span class="s1"><br>
</span></p>
<p class="p6"><span class="s1">I see that these symbols are dynamically linked from CFNetwork which, I guess, doesn't exist on Linux (so there is no lookup for these symbols on Linux). </span></p>
<p class="p5"><span class="s1"></span><br></p>
<p class="p6"><span class="s1">Does this qualify to be a CFStream limitation on Linux?</span></p>
<p class="p5"><span class="s1"></span><br></p>
<p class="p6"><span class="s1">Thanks in advance for your time!</span></p>
<p class="p5"><span class="s1"></span><br></p>
<p class="p6"><span class="s1">Pushkar N Kulkarni,</span></p>
<p class="p6"><span class="s1">IBM Runtimes</span></p>
<p class="p5"><span class="s1"></span><br></p>
<p class="p8"><span class="s1">Simplicity is prerequisite for reliability - Edsger W. Dijkstra</span></p>
<p class="p9"><span class="s1"></span><br></p>
<p class="p4"><span class="s1"></span><br></p>
<p class="p3"><span class="s1">_______________________________________________</span></p>
<p class="p3"><span class="s1">swift-corelibs-dev mailing list</span></p>
<p class="p10"><span class="s3"><a href="mailto:swift-corelibs-dev@swift.org">swift-corelibs-dev@swift.org</a></span></p>
<p class="p3"><span class="s1">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</span></p>
<p class="p4"><span class="s1"></span><br></p>
<p class="p11">_______________________________________________</p>
<p class="p11">swift-corelibs-dev mailing list</p>
<p class="p11">swift-corelibs-dev@swift.org</p>
<p class="p11">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</p>
<p class="p12"><br></p>
<p class="p13"><br></p>
<p class="p14">--<span class="Apple-converted-space"> </span></p>
<p class="p14">-Bouke</p>
</body>
</html>