Changeset 6893 for source/ariba/utility


Ignore:
Timestamp:
Nov 10, 2009, 6:15:28 PM (15 years ago)
Author:
Christoph Mayer
Message:

-visual stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/utility/visual/ServerVis.cpp

    r6849 r6893  
    4343
    4444use_logging_cpp(ServerVis);
    45 
    4645
    4746typedef enum _NETWORK_ID {
     
    109108
    110109void ServerVis::sendSocket(const string& msg){
    111         if( socket.is_open() && socketOpened ){
    112                 logging_debug("sending visual command: " << msg);
     110        if( socket.is_open()==false || socketOpened==false ) return;
     111        logging_debug("sending visual command: " << msg);
     112
     113        try{
    113114                socket.send( boost::asio::buffer(msg) );
     115        }catch( std::exception& e ){
     116                logging_warn("visual connection failed");
     117                socket.close();
     118                socketOpened = false;
    114119        }
    115120}
Note: See TracChangeset for help on using the changeset viewer.