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 { |
Jeff Thompson | 0cb7aee | 2013-07-16 16:18:06 -0700 | [diff] [blame] | 10 | |
| 11 | class NDN; |
Jeff Thompson | fcf347d | 2013-07-15 11:30:44 -0700 | [diff] [blame] | 12 | class Transport { |
| 13 | public: |
Jeff Thompson | 2ed62fb | 2013-07-16 18:10:30 -0700 | [diff] [blame^] | 14 | /** |
| 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 Thompson | 0cb7aee | 2013-07-16 16:18:06 -0700 | [diff] [blame] | 18 | virtual void connect(NDN &ndn); |
Jeff Thompson | fcf347d | 2013-07-15 11:30:44 -0700 | [diff] [blame] | 19 | |
| 20 | virtual void send(unsigned char *data, unsigned int dataLength); |
Jeff Thompson | fcf347d | 2013-07-15 11:30:44 -0700 | [diff] [blame] | 21 | }; |
| 22 | |
| 23 | } |
| 24 | |
| 25 | #endif |