
Net::Packet::DescL4 - object for a transport layer (layer 4) descriptor

use Net::Packet::DescL4;
# Get NP_DESC_* constants
use Net::Packet::Consts qw(:desc);
# Usually, you use it to send TCP and UDP frames over IPv4
my $d4 = Net::Packet::DescL4->new(
target => '192.168.0.1',
protocol => NP_DESC_IPPROTO_TCP,
);
$d4->send($rawStringToNetwork);

See also Net::Packet::Desc for other attributes and methods.

IPv4 address of the target host. You must set it to be able to send frames.
Transport protocol to use, see NP_DESC_IPPROTO_* constants in Net::Packet::Desc. You must set it to be able to send frames.
The family address of target attribute. It is either NP_LAYER_IPv4 or NP_LAYER_IPv6.

Create the object. When the object is created, the $Net::Packet::Env object as its desc attributes set to it. Use noEnvSet to avoid that. Default values:
protocol: NP_DESC_IPPROTO_TCP
family : NP_LAYER_IPv4
Helper method to know about the layer 3 type.
Returns if the protocol attribute is of specified type.

Patrice <GomoR> Auffret

Copyright (c) 2004-2005, Patrice <GomoR> Auffret
You may distribute this module under the terms of the Artistic license. See Copying file in the source distribution archive.
