[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] tcp raw API - accept only one connection
From: |
Palaniappan Chellappan |
Subject: |
[lwip-users] tcp raw API - accept only one connection |
Date: |
Sun, 27 Jun 2010 12:09:02 +0530 |
Dear all,
I am using tcp raw API, i want to achieve following functionality.
1. Listen on port n
2. Accept a new connection
3. Close Listen port, and don't accept any more connection.
4. Process the new connection
3. After processing, close connection and go to step 1.
***Question: How to close listening port ? ****
I tried to call tcp_close(), but the port is still binded, i am not
able to bind another pcb to same port again.
Documentation for "tcp_listen_with_backlog()" says "Setting the
connection to LISTEN is an irreversible process"
so its not possible to close listening port ?
regards,
palani
- [lwip-users] tcp raw API - accept only one connection,
Palaniappan Chellappan <=