lkml.org 
[lkml]   [1998]   [Nov]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectsetsockopt(...SO_REUSEPORT...)
Hi gurus!

I'm trying to get multiple processes reading from the same UDP port on
the same host:

include/asm-i386/socket.h for 2.0.35 and 2.1.126:
...
/* To add :#define SO_REUSEPORT 15 */
...



Has anyone got an idea on how to get multiple processes running

s= socket( AF_INET, SOCK_DGRAM, 0 );
setsockopt( s, SOL_SOCKET, SO_REUSEADDR, ... );
setsockopt( s, SOL_SOCKET, SO_REUSEPORT, ... );
bind( s, ...);
select(... );
recvfrom( s, ... );

to read from the same UDP port and actually get something without using
SO_REUSEPORT, or when SO_REUSEPORT will be implemented ?



*Any* ideas appreciated.

TIA,

Andre
--
andre.delafontaine@echostar.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:45    [W:0.029 / U:0.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site