blob: 82ef03bf4380736b1acf955cb2624814004063dd [file] [log] [blame]
Jeff Thompson7850d782013-07-14 17:59:14 -07001/*
2 * File: TcpTransport.h
3 * Author: jefft0
4 *
5 * Created on July 14, 2013, 4:15 PM
6 */
7
8#ifndef NDN_TCPTRANSPORT_H
9#define NDN_TCPTRANSPORT_H
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15struct ndn_TcpTransport {
16 int socketDescriptor; /**< -1 if not connected */
17};
18
19static inline void ndn_TcpTransport_init(ndn_TcpTransport *self)
20{
21 self->socketDescriptor = -1;
22}
23
24int testTcpTransport(unsigned char *data, unsigned int dataLength);
25
26#ifdef __cplusplus
27}
28#endif
29
30#endif