Hi, The scenario is something like this. I have created an array of say, 5 UDP PCB's. I'd like to bind all these 5 UDP PCB's to the same local IP address and port number combination. Isn't this posible? Like you said, if we cannot bind an IP:Port more than one time, what is the purpose of SO_REUSE and SOF_REUSEADDR flags? Aren't they for reusing a particular port:IP combination for several PCBs at the same time? Thank you.
Regards, Surya On Sat, 3 Dec 2016 12:56:52 +0000, Noam Weissman wrote > Hi, > > If I understand you correctly you are trying to bind IP:port several times on > the same machine > > without closing the previous bind ? > > This is not an option. You can bind UDP and TCP separately with two different > pcb's one for > > TCP and one for UDP. > > You cannot bind an IP:Port more then one time. This is the meaning of binding. > > Its like a marriage between IP and a Port. Until you do not divorce you > cannot > marry again [UTF-8?][ð] > > BR, > > Noam. > > ________________________________ > From: lwip-users <[email protected]> on behalf of > Surya Chaitanya <[email protected]> Sent: Saturday, December 3, 2016 10:44 AM > To: [email protected] Subject: [lwip-users] UDP bind error due to address > and port reuse > > Hi, > > I've been trying to use lwip to transfer UDP packets. In my situation, in the > client application, I would like to create 5 UDP PCBs having the same IP > address and port number. Inspite of setting the SO_REUSE flag to 1, and > setting the SOF_REUSEADDR flag to 1 for all the PCBs, the UDP bind error > still persists. Could somebody pls. help me out? Thank You. > > Disclaimer: > ---------- > This email and any files transmitted with it are confidential and intended > solely for the use of the individual or entity to whom they are addressed. > If you are not the intended recipient you are notified that disclosing, > copying, distributing or taking any action in reliance on the contents of > this information is strictly prohibited. The sender does not accept liability > for any errors or omissions in the contents of this message, which arise as a > result of e-mail transmission. > > -- > Open WebMail Project (http://openwebmail.org) > Open WebMail Project<http://openwebmail.org/> > openwebmail.org > INTRODUCTION. Open WebMail is a webmail system based on the Neomail version > 1.14 from Ernie Miller. Open WebMail is designed to manage very large mail > folder ... > > _______________________________________________ > lwip-users mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/lwip-users > lwip-users -- Mailing list for lwIP users - > lists.nongnu.org<https://lists.nongnu.org/mailman/listinfo/lwip-users> > lists.nongnu.org Welcome to the lwip-users mailing list. Use it to ask > questions, share your experience and discuss new ideas. To see the collection > of prior postings to the list ... Disclaimer: ---------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. The sender does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. -- Open WebMail Project (http://openwebmail.org) _______________________________________________ lwip-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/lwip-users
