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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
// -*- C++ -*-
// $Id$
# if !defined (ACE_LACKS_UNIX_DOMAIN_SOCKETS)
#include "tao/UIOP_Factory.h"
#include "tao/UIOP_Acceptor.h"
#include "tao/UIOP_Connector.h"
#include "ace/Dynamic_Service.h"
ACE_RCSID(tao, UIOP_Factory, "$Id$")
TAO_UIOP_Protocol_Factory::TAO_UIOP_Protocol_Factory (void)
{
}
TAO_UIOP_Protocol_Factory::~TAO_UIOP_Protocol_Factory (void)
{
}
int
TAO_UIOP_Protocol_Factory::match_prefix (const ACE_CString &prefix)
{
const char protocol[] = "uiop";
// This is valid for any protocol beginning with `uiop'.
// Check for the proper prefix in the IOR. If the proper prefix isn't
// in the IOR then it is not an IOR we can use.
return (ACE_OS::strcasecmp (prefix.c_str (), protocol) == 0);
}
TAO_Acceptor *
TAO_UIOP_Protocol_Factory::make_acceptor (void)
{
TAO_Acceptor *acceptor = 0;
ACE_NEW_RETURN (acceptor,
TAO_UIOP_Acceptor,
0);
return acceptor;
}
int
TAO_UIOP_Protocol_Factory::init (int argc, char* argv[])
{
return 0;
}
TAO_Connector *
TAO_UIOP_Protocol_Factory::make_connector (void)
{
TAO_Connector *connector = 0;
ACE_NEW_RETURN (connector,
TAO_UIOP_Connector,
0);
return connector;
}
ACE_STATIC_SVC_DEFINE (TAO_UIOP_Protocol_Factory,
ASYS_TEXT ("UIOP_Factory"),
ACE_SVC_OBJ_T,
&ACE_SVC_NAME (TAO_UIOP_Protocol_Factory),
ACE_Service_Type::DELETE_THIS |
ACE_Service_Type::DELETE_OBJ,
0)
ACE_FACTORY_DEFINE (TAO, TAO_UIOP_Protocol_Factory)
# endif /* !ACE_LACKS_UNIX_DOMAIN_SOCKETS */
|