Ignore:
Timestamp:
04/10/2008 00:22:36 (3 years ago)
Author:
chris
Message:

Remove Win32 command socket thread, as it has caused too much trouble.

Handle command socket on Win32 the same as all other platforms, removing
#ifdefs from BackupDaemon?.

Will replace this thread with regular but not excessive command socket
polling using timers in future.

Change error messages when command socket comms fail to make them clearer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/bin/bbackupd/BackupDaemon.h

    r2302 r2318  
    2828 
    2929#ifdef WIN32 
     30        #include "WinNamedPipeListener.h" 
    3031        #include "WinNamedPipeStream.h" 
    3132#endif 
     
    194195        public: 
    195196#ifdef WIN32 
    196                 WinNamedPipeStream mListeningSocket; 
     197                WinNamedPipeListener<1 /* listen backlog */> mListeningSocket; 
     198                std::auto_ptr<WinNamedPipeStream> mpConnectedSocket; 
    197199#else 
    198200                SocketListen<SocketStream, 1 /* listen backlog */> mListeningSocket; 
     
    203205         
    204206        // Using a socket? 
    205         CommandSocketInfo *mpCommandSocketInfo; 
     207        std::auto_ptr<CommandSocketInfo> mapCommandSocketInfo; 
    206208         
    207209        // Stop notifications being repeated. 
     
    504506 
    505507#ifdef WIN32 
    506         public: 
    507         void RunHelperThread(void); 
    508  
    509508        private: 
    510         bool mDoSyncFlagOut, mSyncIsForcedOut; 
    511509        bool mInstallService, mRemoveService, mRunAsService; 
    512510        std::string mServiceName; 
    513         HANDLE mhMessageToSendEvent, mhCommandReceivedEvent; 
    514         CRITICAL_SECTION mMessageQueueLock; 
    515         std::vector<std::string> mMessageList; 
    516511#endif 
    517512}; 
Note: See TracChangeset for help on using the changeset viewer.