title: Socket Programming in Mac / Cocoa
body: <p>In my application, we need to have socket communication with the server, and through googling and Apple documentation, came across following </p>
  
  <p>1 -- NSStream Class 
  2 -- CFSocket </p>
  
  <p>I am bit confused, it looks like NSStream is wrapper on top of CFSocket class, more over, i need to have Secure Socket Communication, and i went ahead using NSStream / NSInputStream and NSOutput stream, </p>
  
  <p>Entire Application was previously using OpenSSL and now it has to go with Native SSL,can anyone help me to point correct direction, </p>
  
  <p>-- Should i go ahead with NSStream or any other framework is available in Cocoa,  </p>
  
  <p>-- if NSStream is there, it has got poll and run-loop which is most preferred,  </p>
  
  <p>-- Is there any example available that i can refer, </p>
  
  <p>Thanks in Advance</p>