[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] question about api
From: |
jack W |
Subject: |
[lwip-users] question about api |
Date: |
Sat, 20 Nov 2004 21:57:06 +0800 |
hi everyone
i used the lwip's api to writ a tcpecho task in the ucos-II. the codes is here:
sys_thread_new(tcpecho_thread, NULL);
static void
tcpecho_thread(void *arg)
{
conn = netconn_new(NETCONN_TCP);
ssPRINT("CONNECTTION IS ESTABLISHED\n");
/* Bind connection to well known port number 7. */
netconn_bind(conn, NULL, 7);
ssPRINT("CONNECTTION IS BINDED\n");
/* Tell connection to go into listening mode. */
netconn_listen(conn);
ssPRINT("Listening.......\n");
while(1) {
/* Grab new connection. */
newconn = netconn_accept(conn);
ssPRINT("accepted new connection %p\n");
/* Process the new connection. */
if(newconn != NULL) {
......
i set tcpip_debug to 1; and i can watch the debug info by the uart0;ssPRINT is
a function that send char to the uart0;
IN the windows i use the command “telnet 192.168.0.3 7” in the run dialog.
but in debug data that uart0 sent i found that
"
+-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags SYN -+-+-+-+-+-+-+-+-+-+-+-+-+-+
tcp_input: no PCB match found, resetting.
....."
i don't know why the pcb is n't founded? i doubt where the pcb is established ?
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lwip-users] question about api,
jack W <=