jpcap-0.01.16-win32
所属分类:网络编程
开发工具:Java
文件大小:821KB
下载次数:22
上传日期:2004-12-24 11:33:59
上 传 者:
razor
说明: A Java wrapper for WinPcap. It allows Java code to access to the WinPcap on win32.
文件列表:
jpcap-0.01.16-win32 (0, 2004-10-01)
jpcap-0.01.16-win32\docs (0, 2004-10-01)
jpcap-0.01.16-win32\docs\BUILD.windows (1530, 2004-10-01)
jpcap-0.01.16-win32\docs\CREDITS (3111, 2004-10-01)
jpcap-0.01.16-win32\docs\FAQ (5490, 2004-04-06)
jpcap-0.01.16-win32\docs\INSTALL (2137, 2002-04-01)
jpcap-0.01.16-win32\docs\MPL-1.1.txt (25755, 2001-05-28)
jpcap-0.01.16-win32\docs\RELEASE_NOTES (14896, 2004-10-01)
jpcap-0.01.16-win32\jars (0, 2004-10-01)
jpcap-0.01.16-win32\jars\dev-classes_net.ultrametrics-0.03.jar (131272, 2001-05-17)
jpcap-0.01.16-win32\jars\fooware_CommandLine-1.0.jar (4160, 2001-05-17)
jpcap-0.01.16-win32\jars\javadoc_net.sourceforge.jpcap-0.01.16.jar (348228, 2004-10-01)
jpcap-0.01.16-win32\jars\net.sourceforge.jpcap-0.01.16.jar (380433, 2004-10-01)
jpcap-0.01.16-win32\jpcap.bat (880, 2004-03-18)
jpcap-0.01.16-win32\lib (0, 2004-10-01)
jpcap-0.01.16-win32\lib\jpcap.dll (76510, 2004-10-01)
jpcap-0.01.16-win32\properties (0, 2004-10-01)
jpcap-0.01.16-win32\properties\simulator.properties (1049, 2001-06-26)
jpcap-0.01.16-win32\properties\tool.properties (1807, 2001-07-29)
$Id: README,v 1.19 2004/03/16 23:38:31 pcharles Exp $
jpcap README
General Information
jpcap is a set of Java classes which provide an interface and system
for network packet capture. A protocol library and tool for visualizing
network traffic is included.
jpcap hides the low-level details of network packet capture by
abstracting many network packet types and protocols into Java classes.
Internally, jpcap implements bindings to the libpcap system library
through JNI (the Java Native Interface).
jpcap utilizes libpcap, a widely deployed shared-library for capturing
user-level packets. libpcap must be installed on your system in order
to use jpcap.
jpcap consists of a small shared-library which wraps libpcap plus a
collection of Java classes. The shared-library component provides event
hooks, communication and data conversion between a running Java VM and
libpcap. The 'capture' package contains the core capture system.
The 'net' package contains abstractions for many network packet types
and protocols. The 'simulator' package contains a network simulator.
jpcap is licensed under the Mozilla Public License. See docs/MPL-1.1.txt.
Passive Packet Capture vs. Active Packet Injection
jpcap is passive capture mechanism. If you are interested in creating
and injecting arbitrary packets into a network, check out the sister
project 'jpwrite' at http://www.sf.net/projects/jpwrite. Together,
jpcap and jpwrite are a powerful combination.
Running the Samples
If you have installed from RPM and are looking to run the capture tool,
try /usr/bin/jpcap.
If you installed from .gz, try ./jpcap.
jpcap can also be run in 'simulator' mode. In this mode, a pseudo
network interface randomly generates network traffic for capture.
The simulator can be enabled in properties/tool.properties.
Unix vs. Mac OS X vs. Windows
Active jpcap development is taking place on Unix platforms. However,
jpcap should run on any platform where libpcap is implemented.
For building the jpcap library on Windows, the MinGW environment is
recommended. Also, the Windows port of libpcap, known as winpcap, is
required. For more information, have a look at docs/BUILD.windows.
jpcap on Mac OS X is supported. Refer to the file docs/BUILD.osx.
Application Developers (using the packet capture library in other apps)
If you are a Java developer interested in using jpcap to capture
packets in an application you are developing, you need to do the
following:
o In your Java CLASSPATH, include jars/net.sourceforge.jpcap-x.yy.zz.jar
plus all jars found in thirdParty/jars.
o Native bindings to libpcap are provided precompiled for intel Linux.
The Java wrapper shared object is
src/java/net/sourceforge/jpcap/capture/libjpcap.so
This file needs to be included in your LD_LIBRARY_PATH.
If you are working on another platform, you'll need to
build the jpcap library and shared object yourself, see below.
o All capture operations are performed using methods from the class
net.sourceforge.jpcap.capture.PacketCapture
o Javadocs are located in jars/javadoc_net.sourceforge.jpcap-x.yy.zz.jar
o Examples are provided in the package net.sourceforge.jpcap.tutorial.
More specific documentation on the jpcap java packages can be found in
src/java/net/sourceforge/jpcap/README.
If you checked out jpcap from the CVS repository and are looking
for information on building the jpcap library in this tree,
see docs/BUILD.[platform].
Additional information can be found on sourceforge.net, where
development is hosted.
jpcap -- http://www.sf.net/projects/jpcap
Contributing
If you are using jpcap and have made enhancements or bug fixes to the
core capture library, please contribute them back to the master source
pool.
You can contribute by posting a message to the discussion forums at
http://www.sf.net/projects/jpcap, or by emailing the project administrator
directly via pcharles at users.sourceforge.net.
If you've developed an application using jpcap, we're interested in
hearing about it.
Happy Hacking!
近期下载者:
相关文件:
收藏者: