I am trying to use connect on N97. Below is my sample code.
struct sockaddr_in serv_addr;
serv_addr.sin_family = AF_INET;
serv_addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
serv_addr.sin_port = htons(5000);
sock_fd = socket(AF_INET,SOCK_STREAM,IPPROTO_TCP);
int err = connect(sock_fd,(struct sockaddr*)&serv_addr,sizeof(serv_addr));
Some how this code works on emulator, but on device connect returns -1. Is there a known issue with OpenC on N97 or with Symbian 5.0?