RTRlib
Main Page
Modules
Data Structures
Examples
All
Data Structures
Functions
Variables
Typedefs
Enumerations
Enumerator
Groups
Pages
rtrlib
transport
tcp
tcp_transport.h
1
/*
2
* This file is part of RTRlib.
3
*
4
* This file is subject to the terms and conditions of the MIT license.
5
* See the file LICENSE in the top level directory for more details.
6
*
7
* Website: http://rtrlib.realmv6.org/
8
*/
9
19
#ifndef RTR_TCP_TRANSPORT_H
20
#define RTR_TCP_TRANSPORT_H
21
#include "rtrlib/transport/transport.h"
22
31
struct
tr_tcp_config
{
32
char
*host;
33
char
*port;
34
char
*bindaddr;
35
};
36
44
int
tr_tcp_init
(
const
struct
tr_tcp_config
*config,
struct
tr_socket
*socket);
45
#endif
46
/* @} */
tr_socket
A transport socket datastructure.
Definition:
transport.h:95
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:189
tr_tcp_config
A tr_tcp_config struct holds configuration for a TCP connection.
Definition:
tcp_transport.h:31
Generated on Tue Sep 5 2017 13:18:52 for RTRlib by
1.8.5