Have you looked into using select() to monitor the range of ports? That's the typical solution.
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Julian Gardner [RSD] > Sent: Monday, January 21, 2008 4:12 AM > To: Mailing list for lwIP users > Subject: RE: [lwip-users] Has any work been done on allowing > sendandreceiveona single port > > and 5 tasks? dont want to stop the main code running. > > Julian Gardner > > RSD Communications Ltd > Unit 2 > 8 BorrowMeadow Road > Springkerse Industrial Estate > Stirling, Scotland FK7 7UW > > Tel +44 [0]1786 450572 Ext 238 (Main) > Fax +44 [0]1786 474653 > GSM +44 [0]7836 240907 > > Email [EMAIL PROTECTED] > Skype joolzg > MSN [EMAIL PROTECTED] > WWW http://www.rsd.tv http://www.rsdtv.com > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf > > Of Kieran Mansley > > Sent: 21 January 2008 12:06 > > To: Mailing list for lwIP users > > Subject: RE: [lwip-users] Has any work been done on allowing > > sendandreceiveon a single port > > > > On Mon, 2008-01-21 at 11:42 +0000, Julian Gardner [RSD] wrote: > > > Sorry if I have not explained better > > > > > > What i have is a unit which needs to talk to a master unit > > on a fixed > > > port, I open the port as per my code and have a task running which > > > loops around looking at the read flags until i have some data, once > > > this is received i process the data and then send back a > > status block, > > > using lwip_write! > > > > > > I have posted my code which currently runs on port 5000, the reason > > > for the task and code is i may need to monitor a block of ports, > > > 5000-5004 > > > > Probably easiest just to have 5 sockets then, one on each port. > > > > Kieran > > > > > > > > _______________________________________________ > > lwip-users mailing list > > [email protected] > > http://lists.nongnu.org/mailman/listinfo/lwip-users > > > > > _______________________________________________ > lwip-users mailing list > [email protected] > http://lists.nongnu.org/mailman/listinfo/lwip-users _______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
