00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef ACE_LOCK_SOCK_ACCEPTOR_H
00014 #define ACE_LOCK_SOCK_ACCEPTOR_H
00015 #include "ace/pre.h"
00016
00017 #include "ace/SOCK_Acceptor.h"
00018
00019 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00020 # pragma once
00021 #endif
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 template <class ACE_LOCK>
00035 class ACE_LOCK_SOCK_Acceptor : public ACE_SOCK_Acceptor
00036 {
00037 public:
00038
00039 int accept (ACE_SOCK_Stream &new_stream,
00040 ACE_Addr *remote_addr = 0,
00041 ACE_Time_Value *timeout = 0,
00042 int restart = 1,
00043 int reset_new_handle = 0) const;
00044
00045
00046 ACE_LOCK &lock (void);
00047
00048 protected:
00049
00050 ACE_LOCK lock_;
00051 };
00052
00053 #if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
00054 #include "ace/LOCK_SOCK_Acceptor.cpp"
00055 #endif
00056
00057 #if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
00058 #pragma implementation ("LOCK_SOCK_Acceptor.cpp")
00059 #endif
00060
00061 #include "ace/post.h"
00062 #endif