Ignore:
Timestamp:
Oct 15, 2012, 7:17:04 PM (12 years ago)
Author:
Michael Tänzer
Message:

Clean up NetworkChangeDetection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/communication/networkinfo/NetworkChangeDetection.cpp

    r8569 r10767  
    3838
    3939#include "NetworkChangeDetection.h"
     40
     41#include <string>
     42#include <algorithm>
     43#include <cerrno>
     44#include <string.h>
     45#include <sys/types.h>
     46#include <unistd.h>
     47#include <boost/bind.hpp>
     48#include <sys/socket.h>
     49
     50extern "C" {
     51        #include <linux/netlink.h>
     52        #include <linux/rtnetlink.h>
     53}
     54
     55#include "ariba/utility/system/SystemQueue.h"
     56
     57using std::find;
     58using ariba::utility::SystemQueue;
     59using ariba::utility::SystemEventType;
    4060
    4161namespace ariba {
     
    123143        if( obj->routingSocket < 0 ){
    124144                logging_error("could not connect to routing socket: " +
    125                                         string(strerror(errno)));
     145                                        std::string(strerror(errno)));
    126146                return;
    127147        }
     
    155175        if( ret < 0 ){
    156176                close( obj->routingSocket );
    157                 logging_error( "could not bind routing socket: " + string(strerror(errno)) );
     177                logging_error( "could not bind routing socket: " + std::string(strerror(errno)) );
    158178                return;
    159179        }
     
    185205                        // all others are some kind of error
    186206                        logging_error( "could not read from routing socket: " +
    187                                                         string(strerror(errno)) );
     207                                                        std::string(strerror(errno)) );
    188208                        break;
    189209                }
Note: See TracChangeset for help on using the changeset viewer.