Skip to content

please add sctp protocol support to IO::Socket::INET [rt.cpan.org #68902] #17446

Open
@toddr

Description

@toddr

Migrated from rt.cpan.org#68902 (status was 'open')

Requestors:

From [email protected] on 2011-06-17 19:12:49:

currently not working:
IO::Socket::INET->new('Proto'    => 'sctp');

very small and simple fix:

```diff
--- INET.pm_    2011-06-17 20:55:56.000000000 +0400
+++ INET.pm     2011-06-17 20:56:35.000000000 +0400
@@ -22,11 +22,13 @@
 IO::Socket::INET->register_domain( AF_INET );

 my %socket_type = ( tcp  => SOCK_STREAM,
+                    sctp => SOCK_STREAM,
                    udp  => SOCK_DGRAM,
                    icmp => SOCK_RAW
                  );
 my %proto_number;
 $proto_number{tcp}  = Socket::IPPROTO_TCP()  if defined 
&Socket::IPPROTO_TCP;
+$proto_number{sctp}  = Socket::IPPROTO_SCTP()  if defined 
&Socket::IPPROTO_SCTP;
 $proto_number{udp}  = Socket::IPPROTO_UDP()  if defined 
&Socket::IPPROTO_UDP;
 $proto_number{icmp} = Socket::IPPROTO_ICMP() if defined 
&Socket::IPPROTO_ICMP;
 my %proto_name = reverse %proto_number;

From [email protected] on 2012-02-21 19:50:18:

I'm not sure this is the most sensible of behaviors. sctp can be used as
both a SOCK_STREAM and a SOCK_SEQPACKET: but the former doesn't really
make sense (what'd be the advantage over tcp?).

Leon

Metadata

Metadata

Assignees

Labels

Feature Requestdist-IOissues in the dual-life blead-first IO distribution

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions