summaryrefslogtreecommitdiff
path: root/apps/JAWS/server/HTTP_Server_T.h
blob: cb76ce037599eb5b84c4cd73d9b90695d715668b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#if !defined (HTTP_SERVER_T_H)
#define HTTP_SERVER_T_H

// Specialize ACE_SOCK_Acceptor to lock around accept();
template <class LOCK>
class LOCK_SOCK_Acceptor : public ACE_SOCK_Acceptor
{
public:
  int accept (ACE_SOCK_Stream &new_stream,
	      ACE_Addr *remote_addr = 0,
	      ACE_Time_Value *timeout = 0,
	      int restart = 1) const;
  
private:
  LOCK lock_;
};

#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
#include "JAWS/server/HTTP_Server_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */

#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
#pragma implementation ("HTTP_Server_T.cpp")
#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */

#endif /* HTTP_SERVER_T_H */