Get app to talk with server on specified port.
I am trying to learn how to get my app to talk with a local server on a specified port. I have read about using NSStream/input/output, but I am having trouble putting it all together. Trying right now to open the connection to the server and return a random value being broadcast by the server on the port. The app currently has one text field, one button, and a lot of hope... I have found some chunks of sample code but I can't figure out where they need to be. My experience so far has been based around buttons and animations(view switching) and a few other medial operations. Any help would be great, let me know if I am not explaining myself very well. Thanks.
|