Front page | perl.perl5.porters |
Postings from November 2010
M3UA in SCTP...
Thread Next
From:
Kevin Wriston
Date:
November 26, 2010 02:09
Subject:
M3UA in SCTP...
Message ID:
595610.88514.qm@web38801.mail.mud.yahoo.com
Hi Perl Porter,
Any idea if I can set the Payload Protocol Identifier to M3UA (3) in SCTP?
Trying to implement a simple SIGTRAN stack...
Thanks,
Kevin
--
$sock = new IO::Socket::INET(PeerAddr => $ipAddress,
PeerPort => $port,
Proto => 132,
Type => SOCK_STREAM,
Timeout => 3
) or die "Could not create SCTP socket: $!\n";
## read rto data
my $i = getsockopt($sock, 132, 1);
#print rto data
#print "i = "; printBytes($i); print "\n";
#threads->new(sub { receiveLoop($sock); });
##send_m3ua ($sock, 3, 1); # ASPSM/ASPUP
## problems - can't set the SCTP protocol identifier :((
print $sock chr(0x01) . chr(0x00) . chr(0x03) . chr(0x01) . chr(0x00) .
chr(0x00) . chr(0x00) . chr(0x10) . chr(0x00) . chr(0x11) . chr(0x00) .
chr(0x08) . chr(0x00) . chr(0x00) . chr(0xab) . chr(0xcd);
Thread Next
-
M3UA in SCTP...
by Kevin Wriston