summaryrefslogtreecommitdiff
path: root/TAO/tao/params.cpp
blob: ea966ecb23ffd62d8f4453eb2f163244c5575d45 (plain)
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
// $Id$

#include "tao/corba.h"

#if !defined (__ACE_INLINE__)
# include "tao/params.i"
#endif /* __ACE_INLINE__ */

ACE_RCSID(tao, params, "$Id$")

TAO_ORB_Parameters::TAO_ORB_Parameters (void)
  : name_service_ior_ (0),
    name_service_port_ (0),
    trading_service_ior_ (0),
    trading_service_port_ (0),
    sock_rcvbuf_size_ (ACE_DEFAULT_MAX_SOCKET_BUFSIZ),
    sock_sndbuf_size_ (ACE_DEFAULT_MAX_SOCKET_BUFSIZ),
    cdr_memcpy_tradeoff_ (TAO_DEFAULT_CDR_MEMCPY_TRADEOFF),
    use_IIOP_lite_protocol_ (0)
{
}

TAO_ORB_Parameters::~TAO_ORB_Parameters (void)
{
}

void
TAO_ORB_Parameters::addr (const ACE_INET_Addr &addr)
{
  this->addr_ = addr;
}

// Get the address on which we're listening.

const ACE_INET_Addr &
TAO_ORB_Parameters::addr (void)
{
  return this->addr_;
}

void
TAO_ORB_Parameters::name_service_ior (CORBA::String ns)
{
  this->name_service_ior_ = ns;
}

// Set the IOR of our name service.

CORBA::String
TAO_ORB_Parameters::name_service_ior (void)
{
  return this->name_service_ior_;
}

// Get the IOR of our name service.

void
TAO_ORB_Parameters::name_service_port (CORBA::UShort port)
{
  this->name_service_port_ = port;
}

// Set the port of our name service.

CORBA::UShort
TAO_ORB_Parameters::name_service_port (void)
{
  return this->name_service_port_;
}


void
TAO_ORB_Parameters::trading_service_ior (CORBA::String ns)
{
  this->trading_service_ior_ = ns;
}

// Set the IOR of our trading service.

CORBA::String
TAO_ORB_Parameters::trading_service_ior (void)
{
  return this->trading_service_ior_;
}

// Get the IOR of our trading service.

void
TAO_ORB_Parameters::trading_service_port (CORBA::UShort port)
{
  this->trading_service_port_ = port;
}

// Set the port of our trading service.

CORBA::UShort
TAO_ORB_Parameters::trading_service_port (void)
{
  return this->trading_service_port_;
}