~ubuntu-branches/ubuntu/lucid/codelite/lucid

« back to all changes in this revision

Viewing changes to sdk/codelite_indexer/network/np_connections_server.h

  • Committer: Bazaar Package Importer
  • Author(s): Chow Loong Jin
  • Date: 2009-02-10 02:27:55 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090210022755-m5692nfc1t5uf1w9
Tags: 1.0.2759+dfsg-0ubuntu1
* New upstream release (LP: #327216).
* debian/patches/series, debian/patches/00_fix-ia64-build.patch:
  + Dropped, applied upstream already.
* debian/patches/02_fix-desktop.patch,
  debian/patches/03_fix-sh.patch:
  + Refreshed to patch cleanly.
* debian/rules:
  + Make get-orig-source honour UPSTREAM_VERSION if set.
* debian/ctags-le.1,
  debian/codelite_indexer.1,
  debian/codelite.manpages:
  + Dropped ctags-le manpage, since ctags-le was replaced by
    codelite_indexer.
  + Added codelite_indexer manpage.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef np_connections_server_h__
 
2
#define np_connections_server_h__
 
3
 
 
4
 
 
5
#include "named_pipe.h"
 
6
 
 
7
class clNamedPipeConnectionsServer
 
8
{
 
9
public:
 
10
        enum NP_SERVER_ERRORS {
 
11
                NP_SERVER_TIMEOUT = 1,
 
12
                NP_SERVER_UNKNOWN_ERROR
 
13
        };
 
14
 
 
15
        clNamedPipeConnectionsServer(const char* pipeName);
 
16
        virtual ~clNamedPipeConnectionsServer();
 
17
        bool shutdown();
 
18
        clNamedPipe *waitForNewConnection(int timeout);
 
19
        NP_SERVER_ERRORS getLastError() { return this->_lastError ; }
 
20
 
 
21
protected:
 
22
        void setLastError(NP_SERVER_ERRORS error) { this->_lastError = error; }
 
23
 
 
24
private:
 
25
        PIPE_HANDLE initNewInstance();
 
26
        NP_SERVER_ERRORS _lastError;
 
27
        char* _pipePath;
 
28
        PIPE_HANDLE _listenHandle;
 
29
};
 
30
 
 
31
#endif // np_connections_server_h__
 
32
 
 
33