Does anyone know where I can find a good tutorial about NSInputStream and NSOutputStream ?
NSInputStream
NSOutputStream
I found it as best as possible :)
For NSInputStream:
https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSInputStream_Class/Reference/Reference.html
For NSOutputStream:
https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSOutputStream_Class/Reference/Reference.html
If you are creating a game or application that needs to connect to the server through a socket connection and would like to have some real-world examples, these Ray Wenderlich manuals and commands can help you.
http://www.raywenderlich.com/4456/how-to-make-a-multiplayer-iphone-game-hosted-on-your-own-server
http://www.raywenderlich.com/4471/how-to-make-a-multiplayer-iphone-game-hosted-on-your-own-server-part-2