Jeff Thompson | fcf347d | 2013-07-15 11:30:44 -0700 | [diff] [blame^] | 1 | /** |
2 | * @author: Jeff Thompson | ||||
3 | * See COPYING for copyright and distribution information. | ||||
4 | */ | ||||
5 | |||||
6 | #ifndef NDN_TRANSPORT_HPP | ||||
7 | #define NDN_TRANSPORT_HPP | ||||
8 | |||||
9 | namespace ndn { | ||||
10 | |||||
11 | class Transport { | ||||
12 | public: | ||||
13 | virtual void connect(char *host, unsigned short port); | ||||
14 | |||||
15 | virtual void send(unsigned char *data, unsigned int dataLength); | ||||
16 | |||||
17 | virtual unsigned int receive(unsigned char *buffer, unsigned int bufferLength); | ||||
18 | }; | ||||
19 | |||||
20 | } | ||||
21 | |||||
22 | #endif |