[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] telnet server
From: |
wll |
Subject: |
[lwip-users] telnet server |
Date: |
Thu, 8 Nov 2007 10:31:45 -0800 (PST) |
Hi all,
I'm using the lwip-1.1.1 with raw api, and I want to
make a telnet server. My init function is:
void Telnet_init(void)
{
struct tcp_pcb *ptel_pcb;
//new pcb
ptel_pcb = tcp_new();
//Bind it to port 23
tcp_bind(ptel_pcb, NULL, 23);
//state to pcb LISTEN
tcp_listen(ptel_pcb);
//register the callback
tcp_accept(ptel_pcb, Telnet_accept);
}
But the code in the callback Telnet_accept never run.
Looking in the stack I saw that the function
tcp_input() call to tcp_listen_input(), but the
last one do esn't call to tcp_process().
Can someone wive me an advice, regards
Med
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lwip-users] telnet server,
wll <=