Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef ACE_UPIPE_ACCEPTOR_H
00016 #define ACE_UPIPE_ACCEPTOR_H
00017 #include "ace/pre.h"
00018
00019 #include "ace/UPIPE_Stream.h"
00020
00021 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00022 # pragma once
00023 #endif
00024
00025 #if defined (ACE_HAS_THREADS)
00026
00027 #include "ace/SPIPE_Acceptor.h"
00028 #include "ace/Thread_Manager.h"
00029
00030 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00031
00032
00033
00034
00035
00036
00037
00038 class ACE_Export ACE_UPIPE_Acceptor : public ACE_SPIPE_Acceptor
00039 {
00040 public:
00041
00042
00043 ACE_UPIPE_Acceptor (void);
00044
00045
00046 ACE_UPIPE_Acceptor (const ACE_UPIPE_Addr &local_sap,
00047 int reuse_addr = 0);
00048
00049
00050 int open (const ACE_UPIPE_Addr &local_sap,
00051 int reuse_addr = 0);
00052
00053
00054 ~ACE_UPIPE_Acceptor (void);
00055
00056
00057 int close (void);
00058
00059
00060
00061 int remove (void);
00062
00063
00064
00065
00066
00067
00068
00069 int accept (ACE_UPIPE_Stream &server_stream,
00070 ACE_UPIPE_Addr *remote_addr = 0,
00071 ACE_Time_Value *timeout = 0,
00072 bool restart = true,
00073 bool reset_new_handle = false);
00074
00075
00076 void dump (void) const;
00077
00078
00079 ACE_ALLOC_HOOK_DECLARE;
00080
00081 private:
00082
00083 ACE_Thread_Manager tm;
00084
00085
00086 ACE_Message_Block mb_;
00087 };
00088
00089 ACE_END_VERSIONED_NAMESPACE_DECL
00090
00091 #if defined (__ACE_INLINE__)
00092 #include "ace/UPIPE_Acceptor.inl"
00093 #endif
00094
00095 #endif
00096
00097 #include "ace/post.h"
00098
00099 #endif