lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #35892] tcp_new_port() should be exposed as external A


From: steven heintz
Subject: [lwip-devel] [bug #35892] tcp_new_port() should be exposed as external API
Date: Tue, 20 Mar 2012 21:05:59 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.79 Safari/535.11

Follow-up Comment #2, bug #35892 (project lwip):

Ok, confirmed that works - just wasn't clear

so in cases where the LWIP host is responsible for selecting and communicating
an arbitrary high port for further communication, bind to INADDR_ANY with port
= 0, then do a getsockname() request back into the sockaddr_in struct to get
the port number you were granted

then communicate this port number to the other connected client



    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?35892>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

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