Hey, how is your &server declared and defined?
Kind regards, Fabian -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of ALP-Schoof Sent: Dienstag, 22. Juli 2014 09:54 To: [email protected] Subject: [lwip-users] Can't connect through netconn API Hello, I'm using Netconn API (LWIP 1.4.1) and FreeRTOS to implement an FTP server. When I want to make a listening connection struct netconn *ftp_listener = netconn_new(NETCONN_TCP); netconn_bind(ftp_listener, IPADDR_ANY, 21); netconn_listen(ftp_listener); netconn_accept(ftp_listener, &commandConnection); everything will work fine, I can create a connection and send/receive data through netconn_write(conn, data, length, NETCONN_COPY); netconn_recv(conn, &rcvBuff); However when I want to connect to a server, I get an error. struct netconn* nc = netconn_new(NETCONN_TCP); err_t err = netconn_connect(nc, &server, serverPort); >>>>>>> err is -10 (ERR_ABRT) at this point for(; ; ) { netconn_write(nc, "test", 5 , NETCONN_COPY); vTaskDelay(1000); } I've checked all communications with Wireshark, but it appears LWIP doesn't send any connection requests. Cheers! -- View this message in context: http://lwip.100.n7.nabble.com/Can-t-connect-through-netconn-API-tp22930.html Sent from the lwip-users mailing list archive at Nabble.com. _______________________________________________ lwip-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/lwip-users _______________________________________________ lwip-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/lwip-users
