1 #define ACE_BUILD_SVC_DLL
3 #include "ace/Get_Opt.h"
5 #include "jaws3/Concurrency.h"
7 #include "SS_Service_Handler.h"
8 #include "SS_State_READ.h"
11 TeraSS_Service_Handler::TeraSS_Service_Handler ()
12 : JAWS_Protocol_Handler (TeraSS_State_READ::instance (), & this->data_
)
18 TeraSS_Service_Handler::open (void *)
20 int result
= JAWS_Concurrency::instance ()->putq (this);
28 TeraSS_Service_Handler::close (unsigned long)
35 TeraSS_Acceptor::init (int argc
, ACE_TCHAR
*argv
[])
37 ACE_Get_Opt
opt (argc
, argv
, ACE_TEXT("p:"));
42 while ((c
= opt ()) != -1)
46 p
= (unsigned short) ACE_OS::atoi (opt
.optarg
);
55 if (this->open (ACE_INET_Addr (p
)) == -1)
57 ACE_DEBUG ((LM_DEBUG
, "%p\n", "ACE_Acceptor::open"));
64 ACE_SVC_FACTORY_DEFINE (TeraSS_Acceptor
)