Altera_Forum
Honored Contributor
21 years agoSetting a LWIP Non Blocking Socket
Hi,
Has anyone come a cross an issue with setting a non-blocking socket in LWIP. I did the following: if ((pNetworkManager->fd_socket = socket(AF_INET, SOCK_STREAM, 0)) < 0) { die_with_error("CreateSocketTask: Socket creation failed"); } u32_t on = 1; if (lwip_ioctl(pNetworkManager->fd_socket, FIONBIO, &on)) { close(pNetworkManager->fd_socket); } ... which appears to be supported by LWIP but my socking is still blocking. Any ideas or thoughts would be greatly appreciated.