[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Changing Port number at run time

From: Simon Goldschmidt
Subject: Re: [lwip-users] Changing Port number at run time
Date: Tue, 2 Oct 2012 16:19:18 +0200

Sanchayan wrote:

> I have got a connection running in listening mode on a particular port. For 
> giving Dynamic DNS provision, i need to change the port number of my 
> listening connection at run time. I tried tcp_bind, but, it returns 
> "ERR_ISCONN     -13   Already connected".

You can't change the port of a listening pcb once it's open. Instead, close the 
pcb and create a new pcb on the port you need.

> I tried to see in lwiplib.c file, if there is a function like 
> lwIPNetworkConfigChange(), which will help me change the port number for a 
> particular connection.

I don't know that file, which suggests it is not part of lwIP itself but rather 
part of a specific lwIP port.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]