[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

[patch] Socket::SO_REUSEPORT for socket.c

Sam Roberts

2/8/2005 4:12:00 AM

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




2 Answers

Yukihiro Matsumoto

2/8/2005 4:21:00 AM

0

Hi,

In message "Re: [patch] Socket::SO_REUSEPORT for socket.c"
on Tue, 8 Feb 2005 13:12:22 +0900, Sam Roberts <sroberts@uniserve.com> writes:

|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.


Sam Roberts

2/8/2005 2:14:00 PM

0

Quoteing matz@ruby-lang.org, on Tue, Feb 08, 2005 at 01:21:18PM +0900:
> In message "Re: [patch] Socket::SO_REUSEPORT for socket.c"
> on Tue, 8 Feb 2005 13:12:22 +0900, Sam Roberts <sroberts@uniserve.com> writes:
>
> |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