|
From: | Jin Won Seo |
Subject: | [lwip-users] lwip_bind error |
Date: | Fri, 20 Sep 2013 00:46:29 +0900 |
Hi,
I am developing a receiver module using StellarisWare 10636, LM3S9B96, lwip1.3.2, safeRTOS.
I printed out a certain message on LCD to see if socket is bound properly.
1 2 3 4 5 6 7 8 9
10 11 12 13 | while ((socket_fd = lwip_socket(AF_INET, SOCK_DGRAM, 0)) == 0) { DisplayString(115, 210 - 10, " lwip socket error... " ); //xTaskDelay(CHGD_OPEN_TIME); xTaskDelay(SECONDS(5)); //arbitrary time for test } //bind socket to the local address and port if (lwip_bind(socket_fd, ( struct sockaddr *) &sClient, sizeof (sClient)) == -1) { lwip_close(socket_fd); DisplayString(115, 190 - 10, " bind error " ); } |
and lwip_bind() returns -1 as a result "bind error" is displayed on LCD, but I don't see a print-out message in lwip_socket().
I wonder why socket can not be bound properly.
Does anyone have any idea?
Thanks,
Jin
[Prev in Thread] | Current Thread | [Next in Thread] |