Jeff Thompson | 7850d78 | 2013-07-14 17:59:14 -0700 | [diff] [blame] | 1 | /* |
| 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 |
| 12 | extern "C" { |
| 13 | #endif |
| 14 | |
| 15 | struct ndn_TcpTransport { |
| 16 | int socketDescriptor; /**< -1 if not connected */ |
| 17 | }; |
| 18 | |
| 19 | static inline void ndn_TcpTransport_init(ndn_TcpTransport *self) |
| 20 | { |
| 21 | self->socketDescriptor = -1; |
| 22 | } |
| 23 | |
| 24 | int testTcpTransport(unsigned char *data, unsigned int dataLength); |
| 25 | |
| 26 | #ifdef __cplusplus |
| 27 | } |
| 28 | #endif |
| 29 | |
| 30 | #endif |