[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Can't connect through netconn API
From: |
Fabian Koch |
Subject: |
Re: [lwip-users] Can't connect through netconn API |
Date: |
Tue, 22 Jul 2014 13:41:39 +0000 |
Hey,
how is your &server declared and defined?
Kind regards,
Fabian
-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of ALP-Schoof
Sent: Dienstag, 22. Juli 2014 09:54
To: address@hidden
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
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users