2 * Common routines for following data streams
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.org>
8 * Copyright 1998 Gerald Combs
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License
12 * as published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
26 #ifndef __FOLLOW_STREAM_H__
27 #define __FOLLOW_STREAM_H__
30 #include <ui/follow.h>
33 follow_type_t follow_type
;
34 show_stream_t show_stream
;
35 show_type_t show_type
;
36 char *data_out_filename
;
40 GtkWidget
*hexdump_bt
;
43 GtkWidget
*find_dlg_w
;
45 char *filter_out_filter
;
47 GtkWidget
*streamwindow
;
49 guint bytes_written
[2]; /* Index with FROM_CLIENT or FROM_SERVER for readability. */
54 #define E_FOLLOW_INFO_KEY "follow_info_key"
56 /* List of "follow_info_t" structures for all "Follow TCP Stream" windows,
57 so we can redraw them all if the colors or font changes. */
58 extern GList
*follow_infos
;
60 void follow_load_text(follow_info_t
*follow_info
);
61 void follow_filter_out_stream(GtkWidget
* w
, gpointer parent_w
);
62 void follow_stream(const gchar
*title
, follow_info_t
*follow_info
,
63 gchar
*both_directions_string
,
64 gchar
*server_to_client_string
,
65 gchar
*client_to_server_string
);
66 frs_return_t
follow_show(follow_info_t
*follow_info
,
67 gboolean (*print_line
)(char *, size_t, gboolean
, void *),
68 char *buffer
, size_t nchars
, gboolean is_server
,
69 void *arg
, guint32
*global_pos
,
70 guint32
*server_packet_count
,
71 guint32
*client_packet_count
);
72 gboolean
follow_add_to_gtk_text(char *buffer
, size_t nchars
, gboolean is_server
,
75 frs_return_t
follow_read_tcp_stream(follow_info_t
*follow_info
, gboolean (*print_line
)(char *, size_t, gboolean
, void *), void *arg
);
76 frs_return_t
follow_read_udp_stream(follow_info_t
*follow_info
, gboolean (*print_line
)(char *, size_t, gboolean
, void *), void *arg
);
77 frs_return_t
follow_read_ssl_stream(follow_info_t
*follow_info
, gboolean (*print_line
)(char *, size_t, gboolean
, void *), void *arg
);
79 #endif /* __FOLLOW_STREAM_H__ */
82 * Editor modelines - http://www.wireshark.org/tools/modelines.html
87 * indent-tabs-mode: nil
90 * vi: set shiftwidth=4 tabstop=8 expandtab:
91 * :indentSize=4:tabSize=8:noTabs=true: