|$rtp = new Net::RTP( [LocalAdrr=>$addr, LocalPort=>$port,...] )||
The new() method is the constructor for the Net::RTP class.
It takes the same arguments as IO::Socket::INET, however
the <B>ProtoB> argument defaults to udp, which is more appropriate for RTP.
The Net::RTP super-class used will depend on what is available on your system it will try and use one of the following (in order of preference) :
If LocalAddr looks like a multicast address, then Net::RTP will automatically try and join that multicast group for you.
|my $packet = $rtp->recv( [$size] )||Blocks and waits for an RTP packet to arrive on the UDP socket. The read $size defaults to 2048 which is usually big enough to read an entire RTP packet (as it is advisable that packets are less than the Ethernet MTU).|
|$rtp->send( $packet )||Send a Net::RTP::Packet from out of the RTP socket. The <B>PeerPortB> and <B>PeerAddrB> should be defined in order to send packets. Returns the number of bytes sent, or the undefined value if there is an error.|
|$rtp->superclass()||Returns the name of the super-class that Net::RTP chose to use.|
Please report any bugs or feature requests to firstname.lastname@example.org, or through the web interface at <http://rt.cpan.org>. I will be notified, and then you will automatically be notified of progress on your bug as I make changes.
Nicholas J Humfrey, email@example.com
Copyright (C) 2006 University of Southampton
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.005 or, at your option, any later version of Perl 5 you may have available.
|perl v5.20.3||NET::RTP (3)||2016-04-03|