![]() |
![]()
| ![]() |
![]()
NAMENet::NSCA::Client::InitialPacket - Implements initial packet for the NSCA protocol VERSIONThis documentation refers to version 0.009002 SYNOPSISuse Net::NSCA::Client::InitialPacket; # Create a packet from scratch my $packet = Net::NSCA::Client::InitialPacket->new( initialization_vector => $iv, unix_timestamp => time(), ); # Create a packet recieved from over the network my $recieved_packet = Net::NSCA::Client::InitialPacket->new($recieved_data); DESCRIPTIONRepresents the initial packet used in the NSCA protocol. CONSTRUCTORThis is fully object-oriented, and as such before any method can be used, the constructor needs to be called to create an object to work with. newThis will construct a new object.
ATTRIBUTES# Get an attribute my $value = $object->attribute_name; initialization_vectorThis is a binary string, which is the exact length of the constant "$INITIALIZATION_VECTOR_LENGTH". If a string less than this length is provided, then it is automatically padded with NULLs. If not specified, this will default to random bytes generated by a Crypt::Random. server_configThis specifies the configuration of the remote NSCA server. See Net::NSCA::Client::ServerConfig for details about using this. Typically this does not need to be specified unless the NSCA server was compiled with customizations. unix_timestampThis is a UNIX timestamp, which is an integer specifying the number of non-leap seconds since the UNIX epoch. If not specified, this will default to the current timestamp, provided by time(). METHODSto_stringThis methods returns the string representation of the initial packet. This string representation is what will be sent over the network. DEPENDENCIES
AUTHORDouglas Christopher Wilson, "<doug at somethingdoug.com>" BUGS AND LIMITATIONSPlease report any bugs or feature requests to "bug-net-nsca-client at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-NSCA-Client>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. I highly encourage the submission of bugs and enhancements to my modules. LICENSE AND COPYRIGHTCopyright 2009 Douglas Christopher Wilson. This program is free software; you can redistribute it and/or modify it under the terms of either:
|