diff options
author | Christian Pointner <equinox@anytun.org> | 2008-11-25 02:13:05 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2008-11-25 02:13:05 +0000 |
commit | 126e3621fa91a0b5907adc36f2dffc6c81208dc9 (patch) | |
tree | 4c86c513fbe8e388ce1aabcf6cf18e752f6ffb51 /src/packetSource.h | |
parent | fixed readme (diff) |
small type cleanup
Diffstat (limited to 'src/packetSource.h')
-rw-r--r-- | src/packetSource.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/packetSource.h b/src/packetSource.h index f5cbd5d..ce6e997 100644 --- a/src/packetSource.h +++ b/src/packetSource.h @@ -35,8 +35,8 @@ #include <boost/asio.hpp> #include "datatypes.h" -#include "buffer.h" +// TODO: fix this typedef boost::asio::ip::udp::endpoint PacketSourceEndpoint; class PacketSource @@ -51,6 +51,8 @@ public: class UDPPacketSource : public PacketSource { public: + typedef boost::asio::ip::udp proto; + UDPPacketSource(std::string port); UDPPacketSource(std::string localaddr, std::string port); @@ -58,8 +60,9 @@ public: void send(u_int8_t* buf, u_int32_t len, PacketSourceEndpoint remote); private: + boost::asio::io_service io_service_; - boost::asio::ip::udp::socket sock_; + proto::socket sock_; }; #endif |