]>
Commit | Line | Data |
---|---|---|
6d0e9cf0 | 1 | /* |
00cd79b6 | 2 | * Copyright (C) 2010-2015 Andreas Steffen |
6d0e9cf0 AS |
3 | * HSR Hochschule fuer Technik Rapperswil |
4 | * | |
5 | * This program is free software; you can redistribute it and/or modify it | |
6 | * under the terms of the GNU General Public License as published by the | |
7 | * Free Software Foundation; either version 2 of the License, or (at your | |
8 | * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>. | |
9 | * | |
10 | * This program is distributed in the hope that it will be useful, but | |
11 | * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | |
12 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
13 | * for more details. | |
14 | */ | |
15 | ||
16 | /** | |
6c6492d7 | 17 | * @defgroup tnccs_20_h tnccs_20 |
6d0e9cf0 AS |
18 | * @{ @ingroup tnccs_20 |
19 | */ | |
20 | ||
21 | #ifndef TNCCS_20_H_ | |
22 | #define TNCCS_20_H_ | |
23 | ||
24 | #include <library.h> | |
25 | ||
3e563528 | 26 | #include <tnc/tnccs/tnccs.h> |
6d0e9cf0 AS |
27 | |
28 | /** | |
29 | * Create an instance of the TNC IF-TNCCS 2.0 protocol handler. | |
30 | * | |
ebb87f08 | 31 | * @param is_server TRUE to act as TNC Server, FALSE for TNC Client |
00cd79b6 AS |
32 | * @param server_id Server identity |
33 | * @param peer_id Client identity | |
34 | * @param server_ip Server IP address | |
35 | * @param peer_ip Client IP address | |
3e563528 | 36 | * @param transport Underlying IF-T transport protocol |
12b3db50 | 37 | * @param cb Callback function if TNC Server, NULL if TNC Client |
ebb87f08 | 38 | * @return TNC_IF_TNCCS 2.0 protocol stack |
6d0e9cf0 | 39 | */ |
00cd79b6 AS |
40 | tnccs_t* tnccs_20_create(bool is_server, identification_t *server_id, |
41 | identification_t *peer_id, host_t *server_ip, | |
42 | host_t *peer_ip, tnc_ift_type_t transport, | |
43 | tnccs_cb_t cb); | |
6d0e9cf0 AS |
44 | |
45 | #endif /** TNCCS_20_H_ @}*/ |