45 | * public void nextPacket(JPacket packet, T user) { 46 | * JPacket permanentPacket = new JPacket(packet);// creates a permanent packet 47 | * } 48 | *49 | * 50 | * @param packet 51 | * a non persistent between invokations decoded packet 52 | * @param user 53 | * user supplied object of type
This package provides a set of core protocols provided by 4 | jNetPcap. A protocol is made up of a mandatory header class and optional 5 | analysis and other support classes. Analysis classes called 6 | analyzers monitor stream of incoming packets, events from other 7 | analyzers while performing required buffering if necessary, in order to 8 | produce analyzer output.
9 |Analyzer output can be attached directly to packets or streams as 10 | well as dispatched to analyzer listeners directly.
11 | -------------------------------------------------------------------------------- /src/org/jnetpcap/protocol/tcpip/HttpOptions.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Sly Technologies, Inc. 3 | * 4 | * This file is part of jNetPcap. 5 | * 6 | * jNetPcap is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License as 8 | * published by the Free Software Foundation, either version 3 of 9 | * the License, or (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with this program. If not, see