Skip Menu |

This queue is for tickets about the IO CPAN distribution.

Report information
The Basics
Id: 68902
Status: resolved
Priority: 0/
Queue: IO

People
Owner: Nobody in particular
Requestors: PRO [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: please add sctp protocol support to IO::Socket::INET
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;
On Fri Jun 17 15:12:49 2011, PRO wrote: Show quoted text
> --- 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 > );
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
Ticket migrated to github as https://github.com/toddr/IO/issues/42