Hi everyone,
Been pulling my hair out for a week or so over this one.
I'm from a VB background and am looking to write iPhone apps, currently bought 4 obj-C books and am learning slowly but surely..
I'm looking to open a socket to a fixed IP address and port, and send and recieve short hexadecimal messages. I can't open a port though and it is very frustrating!!
I have the iPhone wiTap example program but can't 'read' what is actually going on internally, although I believe it uses Bonjour or similar to connect and hence I'm kind of wasting my time. I've been trying to use the "serverWithAddress" function of TCPConnection but am being warned that it may not respond..
Can anyone knock up a quick example showing a socket being created to a fixed IP address and port, some data being sent and some being recieved? It'll come in handy, more for learning than this task!!
Thanks for any responses!
Been pulling my hair out for a week or so over this one.
I'm from a VB background and am looking to write iPhone apps, currently bought 4 obj-C books and am learning slowly but surely..
I'm looking to open a socket to a fixed IP address and port, and send and recieve short hexadecimal messages. I can't open a port though and it is very frustrating!!
I have the iPhone wiTap example program but can't 'read' what is actually going on internally, although I believe it uses Bonjour or similar to connect and hence I'm kind of wasting my time. I've been trying to use the "serverWithAddress" function of TCPConnection but am being warned that it may not respond..
Can anyone knock up a quick example showing a socket being created to a fixed IP address and port, some data being sent and some being recieved? It'll come in handy, more for learning than this task!!
Thanks for any responses!