blob: 655ce6ed3f82fd0904f9aa4ae7421b1e79479c52 [file] [log] [blame]
Jeff Thompsonfcf347d2013-07-15 11:30:44 -07001/**
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
9namespace ndn {
10
11class Transport {
12public:
Jeff Thompsonbeb8b7d2013-07-16 15:49:21 -070013 virtual void connect(const char *host, unsigned short port);
Jeff Thompsonfcf347d2013-07-15 11:30:44 -070014
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