sipxtacklib  Version 3.3
SipServerBroker.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2004-2006 SIPfoundry Inc.
3 // Licensed by SIPfoundry under the LGPL license.
4 //
5 // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
6 // Licensed to SIPfoundry under a Contributor Agreement.
7 //
8 // $$
10 
11 #ifndef _INCLUDED_SipServerBroker_H /* [ */
12 #define _INCLUDED_SipServerBroker_H
13 
14 // SYSTEM INCLUDES
15 
16 // APPLICATION INCLUDES
17 #include "os/OsTask.h"
18 #include "os/OsLock.h"
19 #include "os/OsSocket.h"
20 #include "os/OsRWMutex.h"
21 #include "os/OsProtectEvent.h"
22 #include "os/OsServerSocket.h"
23 #include "os/OsServerTask.h"
24 
25 class OsNotification;
26 // DEFINES
27 // MACROS
28 // EXTERNAL FUNCTIONS
29 // EXTERNAL VARIABLES
30 // CONSTANTS
31 // STRUCTS
32 
33 class OsConnectionSocket;
34 class OsServerSocket;
35 class OsSocket;
36 
37 
38 
39 class SipServerBroker : public OsTask
40 {
41 
42 /* //////////////////////////// PUBLIC //////////////////////////////////// */
43 public:
44 
45 
46 /* ============================ CREATORS ================================== */
47 
48  SipServerBroker(OsServerTask* pTask, OsServerSocket* pSocket);
49  //:Constructor - takes a server task which created this broker,
50  // and also a socket to listen on
51 
52  virtual
54  //:Destructor
55 
56 /* ============================ MANIPULATORS ============================== */
57  virtual int run(void* pArg);
58 
59 
60 /* ============================ ACCESSORS ================================= */
61 
62 
63 /* ============================ INQUIRY =================================== */
64 /* //////////////////////////// PROTECTED ///////////////////////////////// */
65 protected:
66  OsServerSocket* mpSocket;
67  OsServerTask* const mpOwnerTask;
68 
69 /* //////////////////////////// PRIVATE /////////////////////////////////// */
70 private:
71  SipServerBroker(const SipServerBroker& rSipServerBroker);
72  //:Copy constructor (not implemented for this task)
73 
74  SipServerBroker& operator=(const SipServerBroker& rhs);
75  //:Assignment operator (not implemented for this task)
76 };
77 
78 #endif /* _INCLUDED_SipServerBrokerH ] */
Definition: SipServerBroker.h:39
OsServerSocket * mpSocket
Definition: SipServerBroker.h:66
OsServerTask *const mpOwnerTask
Definition: SipServerBroker.h:67
virtual int run(void *pArg)
Definition: SipServerBroker.cpp:43
SipServerBroker(OsServerTask *pTask, OsServerSocket *pSocket)
Definition: SipServerBroker.cpp:35
virtual ~SipServerBroker()
Definition: SipServerBroker.cpp:65

sipXtackLib home page