RTRlib
Main Page
Modules
Data Structures
Examples
All
Data Structures
Functions
Typedefs
Enumerations
Enumerator
Groups
Pages
rtrlib
transport
tcp
tcp_transport.h
1
/*
2
* This file is part of RTRlib.
3
*
4
* RTRlib is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU Lesser General Public License as published by
6
* the Free Software Foundation; either version 3 of the License, or (at your
7
* option) any later version.
8
*
9
* RTRlib is distributed in the hope that it will be useful, but
10
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
12
* License for more details.
13
*
14
* You should have received a copy of the GNU Lesser General Public License
15
* along with RTRlib; see the file COPYING.LESSER.
16
*
17
* INET group, Hamburg University of Applied Sciences,
18
* CST group, Freie Universitaet Berlin
19
* Website: http://rpki.realmv6.org/
20
*/
21
31
#ifndef RTR_TCP_TRANSPORT_H
32
#define RTR_TCP_TRANSPORT_H
33
#include "rtrlib/transport/transport.h"
34
43
struct
tr_tcp_config
{
44
char
*host;
45
char
*port;
46
char
*bindaddr;
47
};
48
56
int
tr_tcp_init
(
const
struct
tr_tcp_config
*config,
struct
tr_socket
*socket);
57
#endif
58
/* @} */
tr_socket
A transport socket datastructure.
Definition:
transport.h:107
tr_tcp_init
int tr_tcp_init(const struct tr_tcp_config *config, struct tr_socket *socket)
Initializes the tr_socket struct for a TCP connection.
Definition:
tcp_transport.c:201
tr_tcp_config
A tr_tcp_config struct holds configuration for a TCP connection.
Definition:
tcp_transport.h:43
Generated on Wed Jun 17 2015 14:55:58 for RTRlib by
1.8.6