Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

net::epp::protocol(3pm) [debian man page]

Net::EPP::Protocol(3pm) 				User Contributed Perl Documentation				   Net::EPP::Protocol(3pm)

NAME
Net::EPP::Protocol - Low-level functions useful for both EPP clients and servers. SYNOPSIS
#!/usr/bin/perl use Net::EPP::Protocol; use IO::Socket; use strict; # create a socket: my $socket = IO::Socket::INET->new( ... ); # send a frame down the socket: Net::EPP::Protocol->send_frame($socket, $xml); # get a frame from the socket: my $xml = Net::EPP::Protocol->get_frame($socket); DESCRIPTION
EPP is the Extensible Provisioning Protocol. EPP (defined in RFC 4930) is an application layer client-server protocol for the provisioning and management of objects stored in a shared central repository. Specified in XML, the protocol defines generic object management operations and an extensible framework that maps protocol operations to objects. As of writing, its only well-developed application is the provisioning of Internet domain names, hosts, and related contact details. This module implements functions that are common to both EPP clients and servers that implement the TCP transport as defined in RFC 4934. The main consumer of this module is currently Net::EPP::Client. METHODS
my $xml = Net::EPP::Protocol->get_frame($socket); This method reads a frame from the socket and returns a scalar containing the XML. $socket must be an IO::Handle or one of its subclasses (ie "IO::Socket::*"). If the transmission fails for whatever reason, this method will "croak()", so be sure to enclose it in an "eval()". Net::EPP::Protocol->send_frame($socket, $xml); This method prepares an RFC 4934 compliant EPP frame and transmits it to the remote peer. $socket must be an IO::Handle or one of its subclasses (ie "IO::Socket::*"). If the transmission fails for whatever reason, this method will "croak()", so be sure to enclose it in an "eval()". Otherwise, it will return a true value. my $frame = Net::EPP::Protocol->prep_frame($xml); This method returns the XML frame in "wire format" with the protocol header prepended to it. The return value can be printed directly to an open socket, for example: print STDOUT Net::EPP::Protocol->prep_frame($frame->toString); AUTHOR
CentralNic Ltd (<http://www.centralnic.com/>). COPYRIGHT
This module is (c) 2012 CentralNic Ltd. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSO
o Net::EPP::Client o RFCs 4930 and RFC 4934, available from <http://www.ietf.org/>. o The CentralNic EPP site at <http://www.centralnic.com/resellers/epp>. perl v5.14.2 2012-04-23 Net::EPP::Protocol(3pm)

Check Out this Related Man Page

Net::EPP::Frame::Command::Delete::Contact(3pm)		User Contributed Perl Documentation	    Net::EPP::Frame::Command::Delete::Contact(3pm)

NAME
Net::EPP::Frame::Command::Delete::Contact - an instance of Net::EPP::Frame::Command::Delete for contact objects. SYNOPSIS
use Net::EPP::Frame::Command::Delete::Contact; use strict; my $delete = Net::EPP::Frame::Command::Delete::Contact->new; $delete->setContact('contact-id'); print $delete->toString(1); This results in an XML document like this: <?xml version="1.0" encoding="UTF-8"?> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd"> <command> <delete> <contact:delete xmlns:contact="urn:ietf:params:xml:ns:contact-1.0" xsi:schemaLocation="urn:ietf:params:xml:ns:contact-1.0 contact-1.0.xsd"> <contact:name>contact-idE<lt>/contact:name> </contact:delete> </delete> <clTRID>0cf1b8f7e14547d26f03b7641660c641d9e79f45</clTRIDE<gt> </command> </epp> OBJECT HIERARCHY
L<XML::LibXML::Node> +----L<XML::LibXML::Document> +----L<Net::EPP::Frame> +----L<Net::EPP::Frame::Command> +----L<Net::EPP::Frame::Command::Delete> +----L<Net::EPP::Frame::Command::Delete::Contact> METHODS
$frame->setContact($domain_name); This specifies the contact object to be deleted. AUTHOR
CentralNic Ltd (http://www.centralnic.com/). COPYRIGHT
This module is (c) 2012 CentralNic Ltd. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSO
o Net::EPP::Frame perl v5.14.2 2012-04-23 Net::EPP::Frame::Command::Delete::Contact(3pm)
Man Page