GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  NET::FRAME::DUMP::WRITER (3)

.ds Aq ’

NAME

Net::Frame::Dump::Writer - tcpdump like implementation, writer mode

CONTENTS

SYNOPSIS



   use Net::Frame::Dump::Writer;

   my $oDump = Net::Frame::Dump::Writer->new(
      file       => new-file.pcap,
      firstLayer => ETH,
   );

   $oDump->start;

   $oDump->write({ timestamp => 10.10, raw => (A x 14) });

   $oDump->stop;



DESCRIPTION

This module implements a pcap file builder. You will be able to create frames, then write them in the pcap file format to a file.

ATTRIBUTES

The following are inherited attributes:
<B>fileB> Name of the .pcap file to generate.
<B>overwriteB> Overwrites a .pcap file that already exists. Default to not.
<B>appendB> Append new frames to an existing pcap file. Create it if does not exists yet.
<B>firstLayerB> Stores information about the first layer type. It is used to write .pcap file header information.
<B>isRunningB> Returns true if a call to <B>startB> has been done, false otherwise or if a call to <B>stopB> has been done.

METHODS

<B>newB>
<B>newB> (hash) Object constructor. You can pass attributes that will overwrite default ones. See <B>SYNOPSISB> for default values.
<B>startB> When you want to start writing frames to the file, call this method.
<B>stopB> When you want to stop writing frames to the file, call this method.
<B>writeB> ({ timestamp => $value, raw => $rawFrame }) Takes a hashref as a parameter. This hashref MUST have timestamp and raw keys, with values. The raw data will be stored to the .pcap file.

SEE ALSO

Net::Frame::Dump

AUTHOR

Patrice <GomoR> Auffret

COPYRIGHT AND LICENSE

Copyright (c) 2006-2014, Patrice <GomoR> Auffret

You may distribute this module under the terms of the Artistic license. See LICENSE.Artistic file in the source distribution archive.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 NET::FRAME::DUMP::WRITER (3) 2014-12-09

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.