[Flightgear-devel] Another question (udp sockets/broadcast)
I'd like to have a process that does a udp broadcast of key flightgear data. I'd then like to have more than one process on the same machine reading the broadcast packets. Assuming server == the recieving side, and client == sending side. I will have one client sending, and I want multiple server's receiving. However, I can only open one receiving server on my machine. Subsequent processes fail to open the socket returning Address already in use. Is there a magic flag I need to set, or am I just out of luck? Thanks, Curt. -- Curtis Olson IVLab / HumanFIRST Program FlightGear Project Twin Cities[EMAIL PROTECTED] [EMAIL PROTECTED] Minnesota http://www.menet.umn.edu/~curt http://www.flightgear.org ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
RE: [Flightgear-devel] Another question (udp sockets/broadcast)
Does SO_REUSEADDR work? Mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Curtis L. Olson Sent: January 4, 2003 9:30 PM To: [EMAIL PROTECTED] Subject: [Flightgear-devel] Another question (udp sockets/broadcast) I'd like to have a process that does a udp broadcast of key flightgear data. I'd then like to have more than one process on the same machine reading the broadcast packets. Assuming server == the recieving side, and client == sending side. I will have one client sending, and I want multiple server's receiving. However, I can only open one receiving server on my machine. Subsequent processes fail to open the socket returning Address already in use. Is there a magic flag I need to set, or am I just out of luck? Thanks, Curt. -- Curtis Olson IVLab / HumanFIRST Program FlightGear Project Twin Cities[EMAIL PROTECTED] [EMAIL PROTECTED] Minnesota http://www.menet.umn.edu/~curt http://www.flightgear.org ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] Another question (udp sockets/broadcast)
Michael Bonar writes: Does SO_REUSEADDR work? Interesting :-) http://www.unixguide.net/network/socketfaq/4.11.shtml ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] Another question (udp sockets/broadcast)
Curtis L. Olson wrote: However, I can only open one receiving server on my machine. Subsequent processes fail to open the socket returning Address already in use. Are you sure you're using the broadcast address configured for your ethernet device? I might be wrong on this, but I believe the kernel should let you bind multiple sockets to the same port on this IP. If you're using a normal UDP port, then this is correct behavior. The kernel won't deliver the same packet to more than one socket. Andy -- Andrew J. RossNextBus Information Systems Senior Software Engineer Emeryville, CA [EMAIL PROTECTED] http://www.nextbus.com Men go crazy in conflagrations. They only get better one by one. - Sting (misquoted) ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel