Re: [lwip-users] smtp app tcp_connect vs lwip_connect

2015-02-08 Thread Newman, Adam
Hi Simon, thanks for your reply. You wrote: There's no need to do that, just use smtp_send_mail_int() , like this: tcpip_callback(smtp_send_mail_int, your_mail_req) where your_mail_req is a pointer to a struct smtp_send_request. I followed this advice, and also removed the malloc for

[lwip-users] unexpected error on recv function via socket

2015-02-08 Thread Gavin
Hi, I meet one unexpected disconnect on recv function. I have one test case and repeat it to test stability: 1. create one socket and connect to server. 2. data exchange with server. 3. close socket. After several runs, it failed on recv function. I get the debug log like below:

Re: [lwip-users] SNTP client does not work

2015-02-08 Thread Karl Karpfen
Hi Sylvain, now that it is working it is not really a problem for me. But that's what I have seen: in lwiplib.c / lwIPInit() there is a statement if(lwipIf-ipMode == IPADDR_USE_STATIC) { ip_addr.addr = htonl(lwipIf-ipAddr); net_mask.addr = htonl(lwipIf-netMask); gw_addr.addr =