69 lines
3.7 KiB
HTML
69 lines
3.7 KiB
HTML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE html
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html lang="en-us" xml:lang="en-us">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="security" content="public" />
|
|
<meta name="Robots" content="index,follow" />
|
|
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
|
|
<meta name="DC.Type" content="reference" />
|
|
<meta name="DC.Title" content="Frame class" />
|
|
<meta name="abstract" content="" />
|
|
<meta name="description" content="" />
|
|
<meta name="copyright" content="(C) Copyright IBM Corporation 2006" />
|
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2006" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="rzahhcommtraceframe" />
|
|
<meta name="DC.Language" content="en-us" />
|
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
|
<!-- US Government Users Restricted Rights -->
|
|
<!-- Use, duplication or disclosure restricted by -->
|
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
|
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
|
|
<link rel="stylesheet" type="text/css" href="./ic.css" />
|
|
<title>Frame class</title>
|
|
</head>
|
|
<body id="rzahhcommtraceframe"><a name="rzahhcommtraceframe"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Frame class</h1>
|
|
<div><p></p>
|
|
<div class="section"><p>The Frame class represents all the data in one record,
|
|
or frame, in a communications trace for a LAN line description. Each Frame
|
|
contains three main sections of data that appear in the following order:</p>
|
|
<ol><li>An initial 24-byte section that contains general information about the
|
|
frame</li>
|
|
<li>General information about the frame (represented by the LanHeader class)</li>
|
|
<li>The packet data (represented by subclasses of the IPacket abstract class) </li>
|
|
</ol>
|
|
<p>Use the Frame class to parse and create a printable representation
|
|
the data in the frame. The Frame class maintains the packet data in a linked
|
|
list-like structure that uses specific formats. For specific information
|
|
about the possible formats for packet data in a frame and for general information
|
|
about the structure of a frame, see the following:</p>
|
|
<blockquote> <p><a href="rzahhcommtracemodel.htm#rzahhcommtracemodel">Commtrace
|
|
model</a></p>
|
|
</blockquote>
|
|
<p>The Frame class provides methods that allow you to
|
|
perform a variety of actions that include the following:</p>
|
|
<ul><li>Retrieve the data packet</li>
|
|
<li>Retrieve the number, status, and type of the frame</li>
|
|
<li>Return specific data from the frame as a formatted String</li>
|
|
</ul>
|
|
<p>You can use the following process to access the data in a packet:</p>
|
|
<ol><li>Use Frame.getPacket() to retrieve the packet</li>
|
|
<li>Access the data in the header by calling Packet.getHeader()</li>
|
|
<li>After you retrieve the header, call Header.getType() to find the type</li>
|
|
<li>Use the specific Header subclass to to access the data associated with
|
|
that header (the payload) and any additional headers</li>
|
|
</ol>
|
|
</div>
|
|
<div class="section"><h4 class="sectiontitle">Example</h4><p>The following example shows how you can
|
|
use many of the commtrace classes, including the Format and FormatProperties
|
|
classes, to display trace information to your monitor:</p>
|
|
<blockquote><a href="rzahhcommtraceexample.htm#rzahhcommtraceexample">Example: Using the commtrace classes</a></blockquote>
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
</html> |