ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:53203] [ruby-trunk - Feature #8042][Open] Add Addrinfo#socket to create a socket that is not connected or bound
@ 2013-03-07 23:35 drbrain (Eric Hodel)
  2013-03-08  7:54 ` [ruby-core:53223] " Tanaka Akira
                   ` (6 more replies)
  0 siblings, 7 replies; 12+ messages in thread
From: drbrain (Eric Hodel) @ 2013-03-07 23:35 UTC (permalink / raw
  To: ruby-core


Issue #8042 has been reported by drbrain (Eric Hodel).

----------------------------------------
Feature #8042: Add Addrinfo#socket to create a socket that is not connected or bound
https://bugs.ruby-lang.org/issues/8042

Author: drbrain (Eric Hodel)
Status: Open
Priority: Normal
Assignee: 
Category: ext
Target version: current: 2.1.0


This adds a socket method to Addrinfo to get a socket that has not been bound or connected to any address for connectionless operation.


-- 
http://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [ruby-core:53223] Re: [ruby-trunk - Feature #8042][Open] Add Addrinfo#socket to create a socket that is not connected or bound
  2013-03-07 23:35 [ruby-core:53203] [ruby-trunk - Feature #8042][Open] Add Addrinfo#socket to create a socket that is not connected or bound drbrain (Eric Hodel)
@ 2013-03-08  7:54 ` Tanaka Akira
  2013-03-11  1:32 ` [ruby-core:53302] [ruby-trunk - Feature #8042] " drbrain (Eric Hodel)
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 12+ messages in thread
From: Tanaka Akira @ 2013-03-08  7:54 UTC (permalink / raw
  To: ruby-core

2013/3/8 drbrain (Eric Hodel) <drbrain@segment7.net>:

> Feature #8042: Add Addrinfo#socket to create a socket that is not connected or bound
> https://bugs.ruby-lang.org/issues/8042

> This adds a socket method to Addrinfo to get a socket that has not been bound or connected to any address for connectionless operation.

I think the method name, Addrinfo#socket, is too generic.

I feel that Addrinfo#socket method uses socket address in Addrinfo object,
but this proposal doesn't.
-- 
Tanaka Akira

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [ruby-core:53302] [ruby-trunk - Feature #8042] Add Addrinfo#socket to create a socket that is not connected or bound
  2013-03-07 23:35 [ruby-core:53203] [ruby-trunk - Feature #8042][Open] Add Addrinfo#socket to create a socket that is not connected or bound drbrain (Eric Hodel)
  2013-03-08  7:54 ` [ruby-core:53223] " Tanaka Akira
@ 2013-03-11  1:32 ` drbrain (Eric Hodel)
  2013-03-11  2:14   ` [ruby-core:53306] " Tanaka Akira
  2013-03-11 17:18 ` [ruby-core:53320] " drbrain (Eric Hodel)
                   ` (4 subsequent siblings)
  6 siblings, 1 reply; 12+ messages in thread
From: drbrain (Eric Hodel) @ 2013-03-11  1:32 UTC (permalink / raw
  To: ruby-core


Issue #8042 has been updated by drbrain (Eric Hodel).


How about unbound_socket?

I would like to use a feature like this one in rinda/ring.rb for multicast support since options need to be set before connect/bind (see #8073)

Perhaps #connect_to or #bind could take a block that would yield the socket for setsockopt before bind/connect?
----------------------------------------
Feature #8042: Add Addrinfo#socket to create a socket that is not connected or bound
https://bugs.ruby-lang.org/issues/8042#change-37481

Author: drbrain (Eric Hodel)
Status: Open
Priority: Normal
Assignee: 
Category: ext
Target version: current: 2.1.0


This adds a socket method to Addrinfo to get a socket that has not been bound or connected to any address for connectionless operation.


-- 
http://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [ruby-core:53306] Re: [ruby-trunk - Feature #8042] Add Addrinfo#socket to create a socket that is not connected or bound
  2013-03-11  1:32 ` [ruby-core:53302] [ruby-trunk - Feature #8042] " drbrain (Eric Hodel)
@ 2013-03-11  2:14   ` Tanaka Akira
  0 siblings, 0 replies; 12+ messages in thread
From: Tanaka Akira @ 2013-03-11  2:14 UTC (permalink / raw
  To: ruby-core

2013/3/11 drbrain (Eric Hodel) <drbrain@segment7.net>:
>
> How about unbound_socket?

I like unbound_socket.

> Perhaps #connect_to or #bind could take a block that would yield the socket for setsockopt before bind/connect?

It conflicts with current block usage of Addrinfo#connect_to and Addrinfo#bind.
-- 
Tanaka Akira

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [ruby-core:53320] [ruby-trunk - Feature #8042] Add Addrinfo#socket to create a socket that is not connected or bound
  2013-03-07 23:35 [ruby-core:53203] [ruby-trunk - Feature #8042][Open] Add Addrinfo#socket to create a socket that is not connected or bound drbrain (Eric Hodel)
  2013-03-08  7:54 ` [ruby-core:53223] " Tanaka Akira
  2013-03-11  1:32 ` [ruby-core:53302] [ruby-trunk - Feature #8042] " drbrain (Eric Hodel)
@ 2013-03-11 17:18 ` drbrain (Eric Hodel)
  2013-03-11 23:32   ` [ruby-core:53325] " Tanaka Akira
  2013-06-02  6:32 ` [ruby-core:55235] [ruby-trunk - Feature #8042][Assigned] " zzak (Zachary Scott)
                   ` (3 subsequent siblings)
  6 siblings, 1 reply; 12+ messages in thread
From: drbrain (Eric Hodel) @ 2013-03-11 17:18 UTC (permalink / raw
  To: ruby-core


Issue #8042 has been updated by drbrain (Eric Hodel).

File addrinfo.socket.2.patch added

Here is an updated patch using #unbound_socket, may I commit?

PS: ext/socket has no listed maintainer, should it be you, Akira-san?
----------------------------------------
Feature #8042: Add Addrinfo#socket to create a socket that is not connected or bound
https://bugs.ruby-lang.org/issues/8042#change-37514

Author: drbrain (Eric Hodel)
Status: Open
Priority: Normal
Assignee: 
Category: ext
Target version: current: 2.1.0


This adds a socket method to Addrinfo to get a socket that has not been bound or connected to any address for connectionless operation.


-- 
http://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [ruby-core:53325] Re: [ruby-trunk - Feature #8042] Add Addrinfo#socket to create a socket that is not connected or bound
  2013-03-11 17:18 ` [ruby-core:53320] " drbrain (Eric Hodel)
@ 2013-03-11 23:32   ` Tanaka Akira
  0 siblings, 0 replies; 12+ messages in thread
From: Tanaka Akira @ 2013-03-11 23:32 UTC (permalink / raw
  To: ruby-core

2013/3/12 drbrain (Eric Hodel) <drbrain@segment7.net>:

> PS: ext/socket has no listed maintainer, should it be you, Akira-san?

When I want to change API, I tried to obtain approval by matz.
-- 
Tanaka Akira

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [ruby-core:55235] [ruby-trunk - Feature #8042][Assigned] Add Addrinfo#socket to create a socket that is not connected or bound
  2013-03-07 23:35 [ruby-core:53203] [ruby-trunk - Feature #8042][Open] Add Addrinfo#socket to create a socket that is not connected or bound drbrain (Eric Hodel)
                   ` (2 preceding siblings ...)
  2013-03-11 17:18 ` [ruby-core:53320] " drbrain (Eric Hodel)
@ 2013-06-02  6:32 ` zzak (Zachary Scott)
  2013-06-11 23:56 ` [ruby-core:55451] [ruby-trunk - Feature #8042] " drbrain (Eric Hodel)
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 12+ messages in thread
From: zzak (Zachary Scott) @ 2013-06-02  6:32 UTC (permalink / raw
  To: ruby-core


Issue #8042 has been updated by zzak (Zachary Scott).

Status changed from Open to Assigned
Assignee set to drbrain (Eric Hodel)


----------------------------------------
Feature #8042: Add Addrinfo#socket to create a socket that is not connected or bound
https://bugs.ruby-lang.org/issues/8042#change-39627

Author: drbrain (Eric Hodel)
Status: Assigned
Priority: Normal
Assignee: drbrain (Eric Hodel)
Category: ext
Target version: current: 2.1.0


This adds a socket method to Addrinfo to get a socket that has not been bound or connected to any address for connectionless operation.


-- 
http://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [ruby-core:55451] [ruby-trunk - Feature #8042] Add Addrinfo#socket to create a socket that is not connected or bound
  2013-03-07 23:35 [ruby-core:53203] [ruby-trunk - Feature #8042][Open] Add Addrinfo#socket to create a socket that is not connected or bound drbrain (Eric Hodel)
                   ` (3 preceding siblings ...)
  2013-06-02  6:32 ` [ruby-core:55235] [ruby-trunk - Feature #8042][Assigned] " zzak (Zachary Scott)
@ 2013-06-11 23:56 ` drbrain (Eric Hodel)
  2013-06-23 17:53 ` [ruby-core:55610] " headius (Charles Nutter)
  2013-10-01  8:46 ` [ruby-core:57536] " naruse (Yui NARUSE)
  6 siblings, 0 replies; 12+ messages in thread
From: drbrain (Eric Hodel) @ 2013-06-11 23:56 UTC (permalink / raw
  To: ruby-core


Issue #8042 has been updated by drbrain (Eric Hodel).

Assignee changed from drbrain (Eric Hodel) to matz (Yukihiro Matsumoto)

matz, I need your approval to add Addrinfo#unbound_socket which creates a connectionless socket that allows you to set further socket options before connect or to use in a connectionless manner.
----------------------------------------
Feature #8042: Add Addrinfo#socket to create a socket that is not connected or bound
https://bugs.ruby-lang.org/issues/8042#change-39874

Author: drbrain (Eric Hodel)
Status: Assigned
Priority: Normal
Assignee: matz (Yukihiro Matsumoto)
Category: ext
Target version: current: 2.1.0


This adds a socket method to Addrinfo to get a socket that has not been bound or connected to any address for connectionless operation.


-- 
http://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [ruby-core:55610] [ruby-trunk - Feature #8042] Add Addrinfo#socket to create a socket that is not connected or bound
  2013-03-07 23:35 [ruby-core:53203] [ruby-trunk - Feature #8042][Open] Add Addrinfo#socket to create a socket that is not connected or bound drbrain (Eric Hodel)
                   ` (4 preceding siblings ...)
  2013-06-11 23:56 ` [ruby-core:55451] [ruby-trunk - Feature #8042] " drbrain (Eric Hodel)
@ 2013-06-23 17:53 ` headius (Charles Nutter)
  2013-06-25  8:56   ` [ruby-core:55645] " Tanaka Akira
  2013-10-01  8:46 ` [ruby-core:57536] " naruse (Yui NARUSE)
  6 siblings, 1 reply; 12+ messages in thread
From: headius (Charles Nutter) @ 2013-06-23 17:53 UTC (permalink / raw
  To: ruby-core


Issue #8042 has been updated by headius (Charles Nutter).


Objection: why would an "info" object be able to create a socket?

Wouldn't Socket.unbound_socket(addrinfo) make more sense?
----------------------------------------
Feature #8042: Add Addrinfo#socket to create a socket that is not connected or bound
https://bugs.ruby-lang.org/issues/8042#change-40099

Author: drbrain (Eric Hodel)
Status: Assigned
Priority: Normal
Assignee: matz (Yukihiro Matsumoto)
Category: ext
Target version: current: 2.1.0


This adds a socket method to Addrinfo to get a socket that has not been bound or connected to any address for connectionless operation.


-- 
http://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [ruby-core:55645] Re: [ruby-trunk - Feature #8042] Add Addrinfo#socket to create a socket that is not connected or bound
  2013-06-23 17:53 ` [ruby-core:55610] " headius (Charles Nutter)
@ 2013-06-25  8:56   ` Tanaka Akira
  2013-06-25 17:48     ` [ruby-core:55652] " Charles Oliver Nutter
  0 siblings, 1 reply; 12+ messages in thread
From: Tanaka Akira @ 2013-06-25  8:56 UTC (permalink / raw
  To: ruby-core

2013/6/24 headius (Charles Nutter) <headius@headius.com>:
>
> Objection: why would an "info" object be able to create a socket?

I think it is natural because object oriented.
-- 
Tanaka Akira

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [ruby-core:55652] Re: [ruby-trunk - Feature #8042] Add Addrinfo#socket to create a socket that is not connected or bound
  2013-06-25  8:56   ` [ruby-core:55645] " Tanaka Akira
@ 2013-06-25 17:48     ` Charles Oliver Nutter
  0 siblings, 0 replies; 12+ messages in thread
From: Charles Oliver Nutter @ 2013-06-25 17:48 UTC (permalink / raw
  To: ruby-core

On Tue, Jun 25, 2013 at 3:56 AM, Tanaka Akira <akr@fsij.org> wrote:
> 2013/6/24 headius (Charles Nutter) <headius@headius.com>:
>>
>> Objection: why would an "info" object be able to create a socket?
>
> I think it is natural because object oriented.

If the object's type were "Address" I might agree. But it's
"AddrInfo"...information about an address. I don't see the OOness of
an informational object being able to do this sort of thing.

I'm bikeshedding of course, but passing address info to a Socket
constructor seems *far* more OO to me than an address info creating a
socket on its own. Socket should be responsible for creating Socket
instances.

- Charlie

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [ruby-core:57536] [ruby-trunk - Feature #8042] Add Addrinfo#socket to create a socket that is not connected or bound
  2013-03-07 23:35 [ruby-core:53203] [ruby-trunk - Feature #8042][Open] Add Addrinfo#socket to create a socket that is not connected or bound drbrain (Eric Hodel)
                   ` (5 preceding siblings ...)
  2013-06-23 17:53 ` [ruby-core:55610] " headius (Charles Nutter)
@ 2013-10-01  8:46 ` naruse (Yui NARUSE)
  6 siblings, 0 replies; 12+ messages in thread
From: naruse (Yui NARUSE) @ 2013-10-01  8:46 UTC (permalink / raw
  To: ruby-core


Issue #8042 has been updated by naruse (Yui NARUSE).

Target version changed from current: 2.1.0 to next minor


----------------------------------------
Feature #8042: Add Addrinfo#socket to create a socket that is not connected or bound
https://bugs.ruby-lang.org/issues/8042#change-42150

Author: drbrain (Eric Hodel)
Status: Assigned
Priority: Normal
Assignee: matz (Yukihiro Matsumoto)
Category: ext
Target version: next minor


This adds a socket method to Addrinfo to get a socket that has not been bound or connected to any address for connectionless operation.


-- 
http://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2013-10-01  9:17 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-07 23:35 [ruby-core:53203] [ruby-trunk - Feature #8042][Open] Add Addrinfo#socket to create a socket that is not connected or bound drbrain (Eric Hodel)
2013-03-08  7:54 ` [ruby-core:53223] " Tanaka Akira
2013-03-11  1:32 ` [ruby-core:53302] [ruby-trunk - Feature #8042] " drbrain (Eric Hodel)
2013-03-11  2:14   ` [ruby-core:53306] " Tanaka Akira
2013-03-11 17:18 ` [ruby-core:53320] " drbrain (Eric Hodel)
2013-03-11 23:32   ` [ruby-core:53325] " Tanaka Akira
2013-06-02  6:32 ` [ruby-core:55235] [ruby-trunk - Feature #8042][Assigned] " zzak (Zachary Scott)
2013-06-11 23:56 ` [ruby-core:55451] [ruby-trunk - Feature #8042] " drbrain (Eric Hodel)
2013-06-23 17:53 ` [ruby-core:55610] " headius (Charles Nutter)
2013-06-25  8:56   ` [ruby-core:55645] " Tanaka Akira
2013-06-25 17:48     ` [ruby-core:55652] " Charles Oliver Nutter
2013-10-01  8:46 ` [ruby-core:57536] " naruse (Yui NARUSE)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).