Changeset 10767 for source/ariba
- Timestamp:
- Oct 15, 2012, 7:17:04 PM (12 years ago)
- Location:
- source/ariba/communication
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/communication/BaseCommunication.cpp
r10653 r10767 41 41 #include "networkinfo/AddressDiscovery.h" 42 42 #include "ariba/utility/types/PeerID.h" 43 #include "ariba/utility/system/SystemQueue.h" 43 44 #include <boost/function.hpp> 44 45 … … 57 58 58 59 using ariba::utility::PeerID; 60 using ariba::utility::SystemQueue; 59 61 60 62 use_logging_cpp(BaseCommunication); -
source/ariba/communication/networkinfo/NetworkChangeDetection.cpp
r8569 r10767 38 38 39 39 #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 50 extern "C" { 51 #include <linux/netlink.h> 52 #include <linux/rtnetlink.h> 53 } 54 55 #include "ariba/utility/system/SystemQueue.h" 56 57 using std::find; 58 using ariba::utility::SystemQueue; 59 using ariba::utility::SystemEventType; 40 60 41 61 namespace ariba { … … 123 143 if( obj->routingSocket < 0 ){ 124 144 logging_error("could not connect to routing socket: " + 125 st ring(strerror(errno)));145 std::string(strerror(errno))); 126 146 return; 127 147 } … … 155 175 if( ret < 0 ){ 156 176 close( obj->routingSocket ); 157 logging_error( "could not bind routing socket: " + st ring(strerror(errno)) );177 logging_error( "could not bind routing socket: " + std::string(strerror(errno)) ); 158 178 return; 159 179 } … … 185 205 // all others are some kind of error 186 206 logging_error( "could not read from routing socket: " + 187 st ring(strerror(errno)) );207 std::string(strerror(errno)) ); 188 208 break; 189 209 } -
source/ariba/communication/networkinfo/NetworkChangeDetection.h
r8569 r10767 40 40 #define __NETWORK_CHANGE_DETECTION_H 41 41 42 #include <cerrno> 43 #include <csignal> 42 // Forward declarations 43 struct nlmsghdr; 44 44 45 #include <vector> 45 #include <algorithm>46 #include <string>47 #include <net/if.h>48 #include <arpa/inet.h>49 #include <linux/types.h>50 #include <linux/netlink.h>51 #include <linux/rtnetlink.h>52 #include <sys/types.h>53 #include <sys/socket.h>54 #include <sys/ioctl.h>55 #include <boost/thread/mutex.hpp>56 46 #include <boost/thread/thread.hpp> 57 #include <boost/utility.hpp> 58 #include <boost/bind.hpp> 59 #include "ariba/communication/networkinfo/NetworkChangeInterface.h" 60 #include "ariba/communication/networkinfo/NetworkInformation.h" 61 #include "ariba/utility/system/SystemQueue.h" 47 48 #include "NetworkInformation.h" 49 #include "NetworkChangeInterface.h" 62 50 #include "ariba/utility/logging/Logging.h" 63 64 using std::string; 65 using std::vector; 66 using std::find; 67 using ariba::utility::SystemQueue; 68 using ariba::utility::SystemEvent; 69 using ariba::utility::SystemEventType; 70 using ariba::utility::SystemEventListener; 71 using ariba::communication::NetworkInformation; 51 #include "ariba/utility/system/SystemEventListener.h" 72 52 73 53 namespace ariba { 74 54 namespace communication { 55 56 using ariba::utility::SystemEvent; 57 using ariba::utility::SystemEventListener; 75 58 76 59 class NetworkChangeDetection : public SystemEventListener { … … 87 70 88 71 private: 89 typedef vector<NetworkChangeInterface*> RegistrationList;72 typedef std::vector<NetworkChangeInterface*> RegistrationList; 90 73 RegistrationList registrations; 91 74
Note:
See TracChangeset
for help on using the changeset viewer.