[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] Can't connect through netconn API
From: |
ALP-Schoof |
Subject: |
[lwip-users] Can't connect through netconn API |
Date: |
Tue, 22 Jul 2014 00:53:49 -0700 (PDT) |
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] Can't connect through netconn API,
ALP-Schoof <=