Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.301.151 Times

Net::SDP 0.07

Company: Nicholas J Humfrey
Date Added: July 14, 2013  |  Visits: 481

Net::SDP

Report Broken Link
Printer Friendly Version


Product Homepage
Download (37 downloads)



Net::SDP is an SDP (Session Description Protocol) parser and generator. Net::SDP is object oriented and a single instance of Net::SDP represents a single SDP session description. There are methods to easily get, set and create each of the fields in the session description.<br /><br />The classes Net::SDP::Time and Net::SDP::Media are automatically instantiated for each Time Description (t=) and Media Description (m=).<br />METHODS<br /><br />new( [source] )<br /><br /> Creates a new Net::SDP session description object with default values for the required fields.<br /><br /> If the optional paramater source is specified, then it is passed to parse(). If parsing fails, than new() will return undef.<br />parse( source )<br /><br /> Parses in an SDP description. This method tries to work our the source of the SDP data automatically and is ideal for use with command line tools. The source may be a path to a file, a URL, a Net::SAP::Packet object, SDP data itself or if undefined will be read in on STDIN. Returns 1 if successful, or 0 on failure.<br /><br /> NOTE: it is faster to pass SDP data straight into the new() method, as it does not then initialise the object with default values, this involves doing DNS lookups to find out the name of the local host.<br />parse_file( filepath )<br /><br /> Parses in an SDP description from the specified file path. Returns 1 if successful, or 0 on failure.<br />parse_url( url )<br /><br /> Parses in an SDP description from the specified URL. LWP (libwww-perl) is required for this method. Returns 1 if successful, or 0 on failure.<br />parse_stdin()<br /><br /> Parses in an SDP description from STDIN. Returns 1 if successful, or 0 on failure.<br />parse_data( sdpdata )<br /><br /> Parses the SDP description data passed as parameter. Returns 1 if successful, or 0 on failure.<br />generate()<br /><br /> Generates and returns SDP description. Note that you must have set the compulsory fields and have at least one Time Description for the SDP description to be valid.<br />session_origin()<br /><br /> Get or Set the whole of the session origin field. [o=]<br /><br /> Example:<br /><br /> $origin = $sdp->session_origin();<br /> $sdp->session_origin( 'njh 3303643609 3303643669 IN IP4 152.78.104.83' );<br /><br />session_origin_username()<br /><br /> Get or Set the username subfield of the session origin field. [o=]<br /><br /> Example:<br /><br /> $username = $sdp->session_origin_username();<br /> $sdp->session_origin_username( 'njh' );<br /><br />session_origin_id()<br /><br /> Get or Set the ID subfield of the session origin field. This should be an NTP timestamp. [o=]<br /><br /> Example:<br /><br /> $id = $sdp->session_origin_id();<br /> $sdp->session_origin_id( 3303643609 );<br /><br />session_origin_version()<br /><br /> Get or Set the version subfield of the session origin field. This should be an NTP timestamp. [o=]<br /><br /> Example:<br /><br /> $version = $sdp->session_origin_version();<br /> $sdp->session_origin_version( 3303643669 );<br /><br />session_origin_net_type()<br /><br /> Get or Set the network type subfield of the session origin field. In most cases this will be 'IN'. [o=]<br /><br /> Example:<br /><br /> $net_type = $sdp->session_origin_net_type();<br /> $sdp->session_origin_net_type( 'IN' );<br /><br />session_origin_addr_type()<br /><br /> Get or Set the address type subfield of the session origin field. In most cases this will be 'IP4'. [o=]<br /><br /> Example:<br /><br /> $addr_type = $sdp->session_origin_addr_type();<br /> $sdp->session_origin_addr_type( 'IP6' );<br /><br />session_origin_address()<br /><br /> Get or Set the address subfield of the session origin field. This may be a fully qualified domain name or global IP address but must not be a private IP or localhost. [o=]<br /><br /> Example:<br /><br /> $address = $sdp->session_origin_address();<br /> $sdp->session_origin_address( '152.78.104.83' );<br /><br />session_identifier()<br /><br /> Returns a unqiue identifier string of this sessions origin. It contains all of the sub fields in the origin field apart from the version subfield. [o=]<br /><br /> Example:<br /><br /> $ident = $sdp->session_identifier();<br /><br />session_name()<br /><br /> Get or Set the session name field. [s=]<br /><br /> Example:<br /><br /> $name = $sdp->session_name();<br /> $sdp->session_name( 'My Cool Session' );<br /><br />session_info()<br /><br /> Get or Set the session information/description field. [i=]<br /><br /> Example:<br /><br /> $name = $sdp->session_info();<br /> $sdp->session_info( 'Broadcast live from Southampton' );<br /><br />session_uri()<br /><br /> Get or Set the session URI field. Used by WWW clients to get more information about the session. [u=]<br /><br /> Example:<br /><br /> $name = $sdp->session_uri();<br /> $sdp->session_uri( 'http://www.surgeradio.co.uk' );<br /><br />session_email()<br /><br /> Get or Set the session email field. Although uncommon, more than one email address field is valid. You can set multiple email addresses by passing them in an ARRAYREF. This method will only return the first email address. [e=]<br /><br /> Example:<br /><br /> $email = $sdp->session_email();<br /> $sdp->session_email( 'njh@ecs.soton.ac.uk' );<br /> $sdp->session_email( ['njh@ecs.soton.ac.uk', 'njh@surgeradio.co.uk'] );<br /><br />session_email_arrayref()<br /><br /> Returns all email addresses as an array reference. Will return an empty ARRAYREF if no email addresses are available.<br />session_phone()<br /><br /> Get or Set the session telephone number field. Although uncommon, more than one phone number field is valid. You can set multiple phone numbers by passing them in an ARRAYREF. This method will only return the first phone number. [p=]<br /><br /> Example:<br /><br /> $phone = $sdp->session_phone();<br /> $sdp->session_phone( '+44 870 357 2287 begin_of_the_skype_highlighting?*A ?*A ?*A ?*A ?*A ?*A ?*A ?*A ?*A ?*A ?*A ?*A ?*A ?*A +44 870 357 2287?*A ?*A ?*A ?*A ?*A ?*A end_of_the_skype_highlighting' );<br /> $sdp->session_phone( ['0870 357 2287', '41287'] );<br /><br />session_phone_arrayref()<br /><br /> Returns all phone numbers as an array reference. Will return an empty ARRAYREF if no phone numbers are available.<br />session_key( method, [key] )<br /><br /> Get or Set the session encryption key field. When setting the key parameter is optional - dependant on the method. [k=]<br /><br /> Example:<br /><br /> ($method, $key) = $sdp->session_key();<br /> $sdp->session_key( 'prompt' );<br /> $sdp->session_key( 'base64', 'AoItAE8BAQ8DAQOBQwA' );<br /><br />session_attribute( name, [value] )<br /><br /> Get or Set an attribute for this session description. [a=]<br /><br /> When setting an attribute, if you pass in a scalar, then all attributes with the same name will be replaced. Alternively an attribute may be set to multiple values by passing an ARRAYREF. If an attribute does not require it, then the value parameter is optional - eg for 'recvonly' attribute.<br /><br /> When getting an attribute that has no value, then '' is returned, or if the attribute does not exists then undef is returned. If the attribute has a single value, then that value is returned, or if it has more than one value then an ARRAYREF is returned.<br /><br /> Example:<br /><br /> $tool = $sdp->session_attribute( 'tool' );<br /> $sdp->session_attribute( 'recvonly' );<br /><br />session_attributes()<br /><br /> Get a HASHREF of all the attributes associated with this session description [a=]<br /><br /> Example:<br /><br /> $hashref = $sdp->session_attributes();<br /><br />session_add_attribute( name, [value] )<br /><br /> Add a value for sepecified attribute. This method is intended to be used with attributes with multiple values - eg lang [a=]<br /><br /> Example:<br /><br /> $audio->session_add_attribute( 'lang', 'en');<br /> $audio->session_add_attribute( 'lang', 'fr');<br /><br />session_del_attribute( name )<br /><br /> Deletes all attributes of given name. Example:<br /><br /> $audio->session_del_attribute( 'lang' );<br /><br />media_desc_of_type( type )<br /><br /> Returns the first media description (as a Net::SDP::Media) of the specified type.<br /><br /> Example:<br /><br /> $audio = $sdp->media_desc_of_type( 'audio' );<br /><br />media_desc_arrayref( )<br /><br /> Returns an ARRAYREF of all the media descriptions - Net::SDP::Media objects.<br />media_desc_delete_all()<br /><br /> Deletes all media descriptors.<br />media_desc_delete( $num )<br /><br /> Delete media description with index $num. Returns 0 if successful or 1 on failure.<br />time_desc( [$num] )<br /><br /> Returns the time description with index number $num. Returns the first time description if, $num is undefined. Return undef if no time description of chosen index is available. Returns a Net::SDP::Time.<br />time_desc_arrayref()<br /><br /> Returns an ARRAYREF of all the time descriptions - Net::SDP::Time objects.<br />time_desc_delete_all()<br /><br /> Deletes all time descriptors.<br />time_desc_delete( $num )<br /><br /> Delete time description with index $num. Returns 0 if successful or 1 on failure.<br />new_time_desc()<br /><br /> Creates a new time description for the session and returns a new Net::SDP::Time object.<br />new_media_desc( [type] )<br /><br /> Creates a new media description for the session and returns a new Net::SDP::Media object. The type parameter is optional, and will set the media type if specified.<br /><br /> Example:<br /><br /> $time = $sdp->new_media_desc( 'audio' );

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Address Arrayref Attribute Description Email Field Media Method Object Origin Parses Phone Returns Session Source Subfield Successful
Users rating: 0/10

License: Freeware Size: 20.48 KB
USER REVIEWS
More Reviews or Write Review


NET::SDP RELATED
Modules  -  Email Field 1.0
Encryption is available for e-mails by using the SpamSpan module for Drupal 6 only or the Invisimail module for both Drupal 6 and 5.InstallationUnpack in your modules folder (usually /sites/all/modules/) and enable under Administer > Site Building...
 
Mail Clients  -  Vodamail Email Verifier Free Edition 9.61
This FREE software checks for existence of an email address. It verifies / validates email addresses in a list, removes invalid entries and clean the list. Performs three levels of verification - syntax level,domain level and server level with a...
2.98 MB  
Modules  -  Email campaign 6.x-1.1
This module is used to create email campaigns. It provides a node type which includes an email message and an email sending form, along with a form with which to gather information about the person sending the email.The email will be sent and...
10 KB  
Miscellaneous  -  Simplified attribute accessors using overloading 1.0
This script presents an ideom for simplified accessors, that combines typical getter and setter functionality of an attribute into a single overloaded method, that instead of getATTRIBUTE and setATTRIBUTE can now just be called ATTRIBUTE. When...
 
Libraries  -  Address Tangler 0.1
AddressTangler is a PHP function that helps you protect email addresses that you need to add to a web page from spam bots. The project uses a simple HTML/CSS trick: The email address is divided into groups of letters, then each group is placed...
12.29 KB  
Libraries  -  Chilkat Bounce C++ Library 9.2.1
Chilkat Bounce recognizes a variety of bounced mail messages and can extract the email address from any bounced email.
 
Modules  -  About Me 3000 Widget 1.3
The owner can add an email address, a small description and an avatar to be shown next to the summary. Social network integration is done for Twitter, Facebook, Delicious, Technorati, Feedburner and Friendfeed. Requirements: - WordPress 2.0.2 or...
 
Development Tools  -  Chilkat Bounce C Library 1.0
Chilkat Bounce recognizes a variety of bounced email messages and can extract the email address from a bounced email. Features: - Recognize hard bounces and return the bounced email address. - Recognize soft bounces and return the bounced email...
 
Modules  -  Contact Us - More info on the page 1.1
Rather than just the email form, it contains the full postal address, telephone, fax and email linkImprovements: - corrected tabing order in the e-mail form - moved e-mail form to the right side of business information. - added COUNTRY field to...
 
Mail Notification Tools  -  EmailToPhone 1.0
EmailToPhone is a free software for accessing email by any telephone and for sending phone alert when important email arrives. It is based on Voicent Gateway from Voicent Communications. The software currently supports POP3 and IMAP. Email...
272 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB