<font face="Verdana,Arial,Helvetica,sans-serif" size="2"><div>Just to add to that:</div><div><br></div><div>I am wondering if this would hamper the implementation of NSStream, NSInputStream and NSOutputStream for Linux.<br><font face="Verdana,Arial,Helvetica,sans-serif" size="2"><font><font><div class="socmaildefaultfont" dir="ltr"><div class="socmaildefaultfont" dir="ltr"><div class="socmaildefaultfont" dir="ltr"><div dir="ltr" style="font-style: normal;"><br><font face="Sans Serif, Verdana, Arial, Helvetica, sans-serif">Pushkar N Kulkarni,</font></div>
<div dir="ltr" style="font-style: normal;"><font face="Sans Serif, Verdana, Arial, Helvetica, sans-serif">IBM Runtimes</font></div><div dir="ltr" style="font-style: normal;"><font face="Sans Serif, Verdana, Arial, Helvetica, sans-serif"><br></font></div><div dir="ltr"><font face="serif, Times New Roman, Times, serif"><i>Simplicity is prerequisite for reliability - Edsger W. Dijkstra</i></font></div>
<div dir="ltr" style="font-style: normal; font-size: 10.5pt; font-family: Arial;"><br></div></div></div></div></font></font></font></div><br><br><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2" color="#000000"><font color="#990099">-----Pushkar N Kulkarni/India/IBM wrote: -----</font><div class="iNotesHistory" style="padding-left:5px;"><div style="padding-right:0px;padding-left:5px;border-left:solid black 2px;">To: <a href="mailto:swift-corelibs-dev@swift.org" target="_blank">swift-corelibs-dev@swift.org</a><br>From: Pushkar N Kulkarni/India/IBM<br>Date: 03/15/2016 08:24PM<br>Subject: Cannot call CFStreamCreatePairWithSocket on Linux<br><br><font face="Verdana,Arial,Helvetica,sans-serif" size="2"><div><br></div><div>Hello all, </div><div><br></div><div> 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:</div><div><br></div><div><p style="font-size: 14px; line-height: normal; font-family: Menlo;">2016-03-15 10:30:17.791 Client[21389:5a501740] CoreFoundation: failed to dynamically link symbol _CFSocketStreamCreatePair</p><p style="font-size: 14px; line-height: normal; font-family: Menlo;">2016-03-15 10:30:17.791 Client[21389:5a501740] CoreFoundation: failed to dynamically link symbol _CFErrorCreateWithStreamError</p><p style="font-size: 14px; line-height: normal; font-family: Menlo;">2016-03-15 10:30:17.791 Client[21389:5a501740] CoreFoundation: failed to dynamically link symbol _CFStreamErrorFromCFError</p><p style="font-size: 14px; line-height: normal; font-family: Menlo;"><br></p><p style="font-size: 14px; line-height: normal; font-family: Menlo;"><br></p></div><div><font face="Verdana,Arial,Helvetica,sans-serif" size="2"><font><font><div class="socmaildefaultfont" dir="ltr"><div class="socmaildefaultfont" dir="ltr"><div class="socmaildefaultfont" dir="ltr"><div dir="ltr" style="font-style: normal;">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). </div><div dir="ltr" style="font-style: normal;"><br></div><div dir="ltr" style="font-style: normal;">Does this qualify to be a CFStream limitation on Linux?</div><div dir="ltr" style="font-style: normal;"><br></div><div dir="ltr" style="font-style: normal;">Thanks in advance for your time!</div><div dir="ltr" style="font-style: normal;"><br><font face="Sans Serif, Verdana, Arial, Helvetica, sans-serif">Pushkar N Kulkarni,</font></div>
<div dir="ltr" style="font-style: normal;"><font face="Sans Serif, Verdana, Arial, Helvetica, sans-serif">IBM Runtimes</font></div><div dir="ltr" style="font-style: normal;"><font face="Sans Serif, Verdana, Arial, Helvetica, sans-serif"><br></font></div><div dir="ltr"><font face="serif, Times New Roman, Times, serif"><i>Simplicity is prerequisite for reliability - Edsger W. Dijkstra</i></font></div>
<div dir="ltr" style="font-style: normal; font-size: 10.5pt; font-family: Arial;"><br></div></div></div></div></font></font></font></div></font></div></div></font></font><BR>