NetPacket::UDP

NetPacket::UDP is a Perl module to assemble and disassemble UDP (User Datagram Protocol) packets.
Download

NetPacket::UDP Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Tim Potter and Stephanie Wehner
  • Publisher web site:
  • http://search.cpan.org/~atrak/NetPacket-0.04/NetPacket/UDP.pm

NetPacket::UDP Tags


NetPacket::UDP Description

NetPacket::UDP is a Perl module to assemble and disassemble UDP (User Datagram Protocol) packets. NetPacket::UDP is a Perl module to assemble and disassemble UDP (User Datagram Protocol) packets.SYNOPSIS use NetPacket::UDP; $udp_obj = NetPacket::UDP->decode($raw_pkt); $udp_pkt = NetPacket::UDP->encode($ip_obj); $udp_data = NetPacket::UDP::strip($raw_pkt);NetPacket::UDP provides a set of routines for assembling and disassembling packets using UDP (User Datagram Protocol).MethodsNetPacket::UDP->decode()Decode the raw packet data given and return an object containing instance data. This method will quite happily decode garbage input. It is the responsibility of the programmer to ensure valid packet data is passed to this method.NetPacket::UDP->encode(param => value)Return a UDP packet encoded with the instance data specified. Needs parts of the ip header contained in $ip_obj, the IP object, in order to calculate the UDP checksum. The length field will also be set automatically.FunctionsNetPacket::UDP::strip()Return the encapsulated data (or payload) contained in the UDP packet. This data is suitable to be used as input for other NetPacket::* modules.This function is equivalent to creating an object using the decode() constructor and returning the data field of that object.Instance dataThe instance data for the NetPacket::UDP object consists of the following fields.src_portThe source UDP port for the datagram.dest_portThe destination UDP port for the datagram.lenThe length (including length of header) in bytes for this packet.cksumThe checksum value for this packet.dataThe encapsulated data (payload) for this packet. Requirements: · Perl


NetPacket::UDP Related Software