Hi,
I am an experienced c/c++ programmer. I have a small windows mobile project that I must convert to the iPhone.
It uses normal sockets to send data over wi-fi.
e.g.
I am only beginning iPhone Programming so I need some guidance here.
Can I use normal BSD sockets for iPhone?
If so, are there any tutorials or sample code that I can look at??
Thanks
I am an experienced c/c++ programmer. I have a small windows mobile project that I must convert to the iPhone.
It uses normal sockets to send data over wi-fi.
e.g.
Code:
struct sockaddr_in addrT;
memset(&addrT, 0, sizeof(addrT));
addrT.sin_family = AF_INET;
addrT.sin_port = htons((unsigned short)lPort);
//blah blah
phe = gethostbyname(lpszAscii);
// successfully got host address
addrT.sin_addr.s_addr = *(long *)phe->h_addr;
// connect the socket
int nRet = connect(m_socket, (PSOCKADDR)&addrT, sizeof(addrT));
//blah blah
I am only beginning iPhone Programming so I need some guidance here.
Can I use normal BSD sockets for iPhone?
If so, are there any tutorials or sample code that I can look at??
Thanks