"Fossies" - the Fresh Open Source Software Archive 
Member "snort3_extra-3.1.53.0/src/inspectors/appid_listener/appid_listener.h" (20 Dec 2022, 1366 Bytes) of package /linux/misc/snort3_extra-3.1.53.0.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
For more information about "appid_listener.h" see the
Fossies "Dox" file reference documentation.
1 //--------------------------------------------------------------------------
2 // Copyright (C) 2020-2022 Cisco and/or its affiliates. All rights reserved.
3 //
4 // This program is free software; you can redistribute it and/or modify it
5 // under the terms of the GNU General Public License Version 2 as published
6 // by the Free Software Foundation. You may not use, modify or distribute
7 // this program under any other version of the GNU General Public License.
8 //
9 // This program is distributed in the hope that it will be useful, but
10 // WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License along
15 // with this program; if not, write to the Free Software Foundation, Inc.,
16 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 //--------------------------------------------------------------------------
18 // appid_listener.h author Shravan Rangaraju <shrarang@cisco.com>
19
20 #ifndef APPID_LISTENER_H
21 #define APPID_LISTENER_H
22
23 #include <fstream>
24 #include <mutex>
25 #include <string>
26
27 #define MOD_NAME "appid_listener"
28
29 struct AppIdListenerConfig
30 {
31 bool json_logging = false;
32 std::string file_name;
33 std::ofstream file_stream;
34 std::mutex file_mutex;
35 };
36
37 #endif