SSL through IOS support June 18, 2012 11:42PM | Registered: 15 years ago Posts: 98 |
Re: SSL through IOS support June 19, 2012 06:30AM | Moderator Registered: 15 years ago Posts: 686 |
s32 tcp_socket (void) { s32 s, res; s = net_socket (PF_INET, SOCK_STREAM, 0); if (s < 0) { debug_printf ("net_socket failed: %d\n", s); return s; } return s; // don't do the non-blocking stuff res = net_fcntl (s, F_GETFL, 0); if (res < 0) { debug_printf ("F_GETFL failed: %d\n", res); net_close (s); return res; } res = net_fcntl (s, F_SETFL, res | 4); if (res < 0) { debug_printf ("F_SETFL failed: %d\n", res); net_close (s); return res; } return s; }and it works fine.
Re: SSL through IOS support June 19, 2012 07:49AM | Registered: 15 years ago Posts: 98 |