blob: 70f7dbcb91748be149061fc96d1d9194ae92222d [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 {
Jeff Thompson0cb7aee2013-07-16 16:18:06 -070010
11class NDN;
Jeff Thompsonfcf347d2013-07-15 11:30:44 -070012class Transport {
13public:
Jeff Thompson2ed62fb2013-07-16 18:10:30 -070014 /**
15 *
16 * @param ndn Not a shared_ptr because we assume that it will remain valid during the life of this Transport object.
17 */
Jeff Thompson0cb7aee2013-07-16 16:18:06 -070018 virtual void connect(NDN &ndn);
Jeff Thompsonfcf347d2013-07-15 11:30:44 -070019
20 virtual void send(unsigned char *data, unsigned int dataLength);
Jeff Thompsonfcf347d2013-07-15 11:30:44 -070021};
22
23}
24
25#endif