[patch] Socket::SO_REUSEPORT for socket.c

S

Sam Roberts

I need SO_REUSEPORT, but there seems to be a bunch of unsupported socket
options on OS X. Shall I post a patch for the whole lot?

Sam

Index: socket.c
===================================================================
RCS file: /src/ruby/ext/socket/socket.c,v
retrieving revision 1.108.2.20
diff -u -r1.108.2.20 socket.c
--- socket.c 9 Dec 2004 23:39:37 -0000 1.108.2.20
+++ socket.c 8 Feb 2005 04:06:12 -0000
@@ -2796,6 +2796,9 @@
sock_define_const("SO_DEBUG", SO_DEBUG);
#endif
sock_define_const("SO_REUSEADDR", SO_REUSEADDR);
+#ifdef SO_REUSEPORT
+ sock_define_const("SO_REUSEPORT", SO_REUSEPORT);
+#endif
#ifdef SO_TYPE
sock_define_const("SO_TYPE", SO_TYPE);
#endif
 
Y

Yukihiro Matsumoto

Hi,

In message "Re: [patch] Socket::SO_REUSEPORT for socket.c"

|I need SO_REUSEPORT, but there seems to be a bunch of unsupported socket
|options on OS X. Shall I post a patch for the whole lot?

Yes, preferably to the ruby-core list.

matz.
 
S

Sam Roberts

Quoteing (e-mail address removed), on Tue, Feb 08, 2005 at 01:21:18PM +0900:
In message "Re: [patch] Socket::SO_REUSEPORT for socket.c"

|I need SO_REUSEPORT, but there seems to be a bunch of unsupported socket
|options on OS X. Shall I post a patch for the whole lot?

Yes, preferably to the ruby-core list.

Will do.

Sam
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,608
Members
45,252
Latest member
MeredithPl

Latest Threads

Top