255 |
|
|
256 |
/* Drain the recvmbox. */ |
/* Drain the recvmbox. */ |
257 |
if(conn->recvmbox != SYS_MBOX_NULL) { |
if(conn->recvmbox != SYS_MBOX_NULL) { |
258 |
while(sys_arch_mbox_fetch(conn->recvmbox, &mem, 1) != 0) { |
while(sys_arch_mbox_fetch(conn->recvmbox, &mem, 1) != SYS_ARCH_TIMEOUT) { |
259 |
if(conn->type == NETCONN_TCP) { |
if(conn->type == NETCONN_TCP) { |
260 |
pbuf_free((struct pbuf *)mem); |
pbuf_free((struct pbuf *)mem); |
261 |
} else { |
} else { |
269 |
|
|
270 |
/* Drain the acceptmbox. */ |
/* Drain the acceptmbox. */ |
271 |
if(conn->acceptmbox != SYS_MBOX_NULL) { |
if(conn->acceptmbox != SYS_MBOX_NULL) { |
272 |
while(sys_arch_mbox_fetch(conn->acceptmbox, &mem, 1) != 0) { |
while(sys_arch_mbox_fetch(conn->acceptmbox, &mem, 1) != SYS_ARCH_TIMEOUT) { |
273 |
netconn_delete((struct netconn *)mem); |
netconn_delete((struct netconn *)mem); |
274 |
} |
} |
275 |
|
|