BOOST_ASSERT( !Name.empty() );
int ret = ::setsockopt(
- Socket.native(),
+ Socket.native_handle(),
SOL_SOCKET,
SO_BINDTODEVICE,
Name.c_str(),
void IcmpPinger::ping(
const address &destination_ip,
const uint16_t /*destination_port*/, // the ICMP protocol does not use ports
- function<void(PingStatus,long)> ping_done_callback
+ boost::function<void(PingStatus,long)> ping_done_callback
)
{
PingDoneCallback = ping_done_callback;
// a map from interval (in seconds) to delay (in seconds)
typedef std::pair<int, float> IntervalCountPair;
typedef std::map<int, float> DelayMap;
-typedef shared_ptr<boost::asio::deadline_timer> TimerItem;
+typedef boost::shared_ptr<boost::asio::deadline_timer> TimerItem;
const boost::posix_time::time_duration SIGNAL_CHECK_INTERVAL = boost::posix_time::seconds(1);
void TcpPinger::ping(
const address &destination_ip,
const uint16_t destination_port,
- function<void(PingStatus,long)> ping_done_callback
+ boost::function<void(PingStatus,long)> ping_done_callback
)
{
BOOST_ASSERT( ( 0 < destination_port ) && ( destination_port < numeric_limits<uint16_t>::max() ) );
// this causes above fixture to be created only once before tests start and
// destructed after tests end; however, variables are not accessible in test
// cases
-BOOST_GLOBAL_FIXTURE( GlobalFixture )
+BOOST_GLOBAL_FIXTURE( GlobalFixture );
// using this as suite-level fixture makes variable Master accessible in all