2 /* Handle connections from remote INET connections. */
4 #ifndef _HANDLE_R_STREAM_H
5 #define _HANDLE_R_STREAM_H
7 #include "ace/Service_Config.h"
8 #include "ace/Reactor.h"
10 #if !defined (ACE_LACKS_PRAGMA_ONCE)
12 #endif /* ACE_LACKS_PRAGMA_ONCE */
14 #include "ace/Service_Types.h"
15 #include "ace/SOCK_Stream.h"
16 #include "ace/SOCK_Acceptor.h"
17 #include "ace/INET_Addr.h"
18 #include "ace/Log_Msg.h"
19 #include "ace/svc_export.h"
21 class ACE_Svc_Export Handle_R_Stream
: public ACE_Service_Object
, public ACE_SOCK_Acceptor
25 virtual int init (int argc
, ACE_TCHAR
*argv
[]);
26 virtual int info (ACE_TCHAR
**, size_t) const;
30 int open (const ACE_INET_Addr
&sia
, int async
= 0);
31 virtual ACE_HANDLE
get_handle () const;
32 virtual int handle_input (ACE_HANDLE fd
);
33 virtual int handle_close (ACE_HANDLE fd
, ACE_Reactor_Mask
);
35 ACE_SOCK_Stream new_remote_stream
;
36 static u_short DEFAULT_PORT
;
37 static char *login_name
;
38 static char login
[ACE_MAX_USERID
];
41 extern ACE_Service_Object_Type rs
;
43 #if defined (__ACE_INLINE__)
44 #define ACE_INLINE inline
45 #include "Handle_R_Stream.inl"
48 #endif /* __ACE_INLINE__ */
50 #endif /* _HANDLE_R_STREAM_H */