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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
|
<!--
**********************************************************************
Copyright (c) 2003 - 2004
ZeroC, Inc.
North Palm Beach, FL, USA
All Rights Reserved.
This copy of Ice is licensed to you under the terms described in the
ICE_LICENSE file included in this distribution.
**********************************************************************
-->
<!-- ********************************************************************** -->
<section><title>Proxies</title>
<!-- ********************************************************************** -->
<section><title>Synopsis</title>
<cmdsynopsis>
<arg choice=plain><replaceable>identity</replaceable></arg>
<group>
<arg>-f <replaceable>facet</replaceable></arg>
<arg>-t</arg>
<arg>-o</arg>
<arg>-O</arg>
<arg>-d</arg>
<arg>-D</arg>
<arg>-s</arg>
</group>
<group>
<arg choice=plain> @ <replaceable>adapter_id</replaceable></arg>
<arg choice=plain> : <replaceable>endpoints</replaceable></arg>
</group>
</cmdsynopsis>
</section>
<section><title>Description</title>
<para>
A stringified proxy consists of an identity, proxy options, and an
optional object adapter identifier or endpoint list. A proxy containing
an identity with no endpoints, or an identity with an object adapter
identifier, represents an indirect proxy that will be resolved using the
&Ice; locator (see the <literal>Ice.Default.Locator</literal> property).
</para>
<para>
Proxy options configure the invocation mode:
</para>
<informaltable>
<tgroup cols=2>
<tbody>
<row>
<entry>-f <replaceable>facet</replaceable></entry>
<entry>Select a facet of the Ice object.</entry>
</row>
<row>
<entry>-t</entry>
<entry>Configures the proxy for twoway invocations. (default)</entry>
</row>
<row>
<entry>-o</entry>
<entry>Configures the proxy for oneway invocations.</entry>
</row>
<row>
<entry>-O</entry>
<entry>Configures the proxy for batch oneway invocations.</entry>
</row>
<row>
<entry>-d</entry>
<entry>Configures the proxy for datagram invocations.</entry>
</row>
<row>
<entry>-D</entry>
<entry>Configures the proxy for batch datagram invocations.</entry>
</row>
<row>
<entry>-s</entry>
<entry>Configures the proxy for secure invocations.</entry>
</row>
</tbody>
</tgroup>
</informaltable>
<para>
The proxy options <literal>-t</literal>, <literal>-o</literal>,
<literal>-O</literal>, <literal>-d</literal>, and <literal>-D</literal>
are mutually exclusive.
</para>
<para>
The object identity <replaceable>identity</replaceable> is structured
as <literal>[<replaceable>category</replaceable>/]<replaceable>name
</replaceable></literal>, where the <replaceable>category</replaceable>
component and slash separator are optional. If
<replaceable>identity</replaceable> contains white space or either of the
characters <literal>:</literal> or <literal>@</literal>, it must be enclosed
in single or double quotes. The <replaceable>category</replaceable> and
<replaceable>name</replaceable> components are UTF8 strings that use the
encoding described below. Any occurrence of a slash (<literal>/</literal>)
in <replaceable>category</replaceable> or <replaceable>name</replaceable>
must be escaped with a backslash (i.e., <literal>\/</literal>).
</para>
<para>
The <replaceable>facet</replaceable> argument of the <literal>-f</literal>
option represents a facet path comprising one or more facets separated by
a slash (<literal>/</literal>). If <replaceable>facet</replaceable>
contains white space, it must be enclosed in single or double quotes. Each
component of the facet path is a UTF8 string that uses the encoding described
below. Any occurrence of a slash (<literal>/</literal>) in a facet path
component must be escaped with a backslash (i.e., <literal>\/</literal>).
</para>
<para>
The object adapter identifier <replaceable>adapter_id</replaceable>
is a UTF8 string that uses the encoding described below. If
<replaceable>adapter_id</replaceable> contains white space, it must
be enclosed in single or double quotes.
</para>
<para>
UTF8 strings are encoded using ASCII characters for the ordinal
range 32-126 (inclusive). Characters outside this range must be encoded
using escape sequences (<literal>\b</literal>,
<literal>\f</literal>, <literal>\n</literal>, <literal>\r</literal>,
<literal>\t</literal>) or octal notation (e.g., <literal>\007</literal>).
Quotation marks used to enclose a string can be escaped using a backslash,
as can the backslash itself (<literal>\\</literal>).
</para>
<para>
If endpoints are specified, they must be separated with a colon
(<literal>:</literal>) and formatted as described in
<link linkend="endpoints" endterm="endpoints.title">Endpoints</link>. The order of
endpoints in the stringified proxy is not necessarily the order in
which connections are attempted during binding: when a stringified proxy is
converted into a proxy instance, the endpoint list is randomized as a form
of load balancing.
</para>
<para>
If the <literal>-s</literal> option is specified, only those endpoints that
support secure invocations are considered during binding. If no valid
endpoints are found, the application receives
<literal>Ice::NoEndpointException</literal>.
</para>
<para>
Otherwise, if the <literal>-s</literal> option is not specified, the endpoint
list is ordered so that non-secure endpoints have priority over secure
endpoints during binding. In other words, connections are attempted on all
non-secure endpoints before any secure endpoints are attempted.
</para>
<para>
If an unknown option is specified, or the stringified proxy is malformed,
the application receives <literal>Ice::ProxyParseException</literal>. If
an endpoint is malformed, the application receives
<literal>Ice::EndpointParseException</literal>.
</para>
</section>
</section>
<!-- ********************************************************************** -->
<section id="endpoints"><title id="endpoints.title">Endpoints</title>
<!-- ********************************************************************** -->
<section><title>Synopsis</title>
<cmdsynopsis>
<arg choice=plain><replaceable>endpoint</replaceable></arg>
<arg rep=repeat> : <replaceable>endpoint</replaceable></arg>
</cmdsynopsis>
</section>
<section><title>Description</title>
<para>
An endpoint list comprises one or more endpoints separated by a colon
(<literal>:</literal>). An endpoint has the following format:
<cmdsynopsis>
<arg choice=plain><replaceable>protocol</replaceable></arg>
<arg rep=repeat><replaceable>option</replaceable></arg>
</cmdsynopsis>
The supported protocols are <literal>tcp</literal>, <literal>udp</literal>,
<literal>ssl</literal>, and <literal>default</literal>. If
<literal>default</literal> is used, it is replaced by the value of the
<literal>Ice.Default.Protocol</literal> property. If an endpoint is
malformed, or an unknown protocol is specified, the application receives
<literal>Ice::EndpointParseException</literal>.
</para>
<note>
<para>
The <literal>ssl</literal> protocol is only available if the IceSSL plug-in
is installed.
</para>
</note>
<para>
The protocols and their supported options are described in the sections that
follow.
</para>
</section>
<!-- ********************************************************************** -->
<section><title>TCP Endpoint</title>
<!-- ********************************************************************** -->
<section><title>Synopsis</title>
<cmdsynopsis>
<command>tcp</command>
<arg>-h <replaceable>host</replaceable></arg>
<arg>-p <replaceable>port</replaceable></arg>
<arg>-t <replaceable>timeout</replaceable></arg>
<arg>-z</arg>
</cmdsynopsis>
</section>
<section><title>Description</title>
<para>
A <literal>tcp</literal> endpoint supports the following options:
<informaltable>
<tgroup cols=4>
<thead>
<row>
<entry>Option</entry>
<entry>Description</entry>
<entry>Client Semantics</entry>
<entry>Server Semantics</entry>
</row>
</thead>
<tbody>
<row>
<entry>-h <replaceable>host</replaceable></entry>
<entry>Specifies the hostname or IP address of the endpoint. If not
specified, the value of <literal>Ice.Default.Host</literal> is used
instead.</entry>
<entry>Determines the hostname or IP address to which a connection
attempt is made.</entry>
<entry>Determines the network interface on which the object adapter
listens for connections, as well as the hostname that is advertised
in proxies created by the adapter.</entry>
</row>
<row>
<entry>-p <replaceable>port</replaceable></entry>
<entry>Specifies the port number of the endpoint.</entry>
<entry>Determines the port to which a connection attempt is made.
(required)</entry>
<entry>The port will be selected by the operating system if this option
is not specified or <replaceable>port</replaceable> is zero.</entry>
</row>
<row>
<entry>-t <replaceable>timeout</replaceable></entry>
<entry>Specifies the endpoint timeout in milliseconds.</entry>
<entry>If <replaceable>timeout</replaceable> is greater than zero,
it sets a maximum delay for binding and proxy invocations. If a timeout
occurs, the application receives <literal>Ice::TimeoutException</literal>.
</entry>
<entry>Determines the default timeout that is advertised in proxies
created by the object adapter.</entry>
</row>
<row>
<entry>-z</entry>
<entry>Specifies bzip2 compression.</entry>
<entry>Determines whether compressed requests are sent.</entry>
<entry>Determines whether compressed responses are sent, as well as
whether compression is advertised in proxies created by the
adapter.</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</para>
</section>
</section>
<!-- ********************************************************************** -->
<section><title>UDP Endpoint</title>
<!-- ********************************************************************** -->
<section><title>Synopsis</title>
<cmdsynopsis>
<command>udp</command>
<arg>-v <replaceable>major</replaceable>.<replaceable>minor</replaceable></arg>
<arg>-e <replaceable>major</replaceable>.<replaceable>minor</replaceable></arg>
<arg>-h <replaceable>host</replaceable></arg>
<arg>-p <replaceable>port</replaceable></arg>
<arg>-c</arg>
<arg>-z</arg>
</cmdsynopsis>
</section>
<section><title>Description</title>
<para>
A <literal>udp</literal> endpoint supports the following options:
<informaltable>
<tgroup cols=4>
<thead>
<row>
<entry>Option</entry>
<entry>Description</entry>
<entry>Client Semantics</entry>
<entry>Server Semantics</entry>
</row>
</thead>
<tbody>
<row>
<entry>-v <replaceable>major</replaceable>.<replaceable>minor</replaceable></entry>
<entry>Specifies the protocol major and highest minor version number to be used for this
endpoint. If not specified, the protocol major version and highest supported minor version
of the client-side &Ice; run time is used.</entry>
<entry>Determines the protocol major version and highest minor version used by the client side
when sending messages to this endpoint. The protocol major version number must match the protocol major
version number of the server; the protocol minor version number must not be higher than the highest minor
version number supported by the server.</entry>
<entry>Determines the protocol major version and highest minor version advertised by the server side for this endpoint.
The protocol major version number must match the protocol major
version number of the server; the protocol minor version number must not be higher than the highest minor
version number supported by the server.</entry>
</row>
<row>
<entry>-e <replaceable>major</replaceable>.<replaceable>minor</replaceable></entry>
<entry>Specifies the encoding major and highest minor version number to be used for this
endpoint. If not specified, the encoding major version and highest supported minor version
of the client-side &Ice; run time is used.</entry>
<entry>Determines the encoding major version and highest minor version used by the client side
when sending messages to this endpoint. The encoding major version number must match the encoding major
version number of the server; the encoding minor version number must not be higher than the highest minor
version number supported by the server.</entry>
<entry>Determines the encoding version and highest minor version advertised by the server side for this endpoint.
The protocol major version number must match the protocol major
version number of the server; the protocol minor version number must not be higher than the highest minor
version number supported by the server.</entry>
</row>
<row>
<entry>-h <replaceable>host</replaceable></entry>
<entry>Specifies the hostname or IP address of the endpoint. If not
specified, the value of <literal>Ice.Default.Host</literal> is used
instead.</entry>
<entry>Determines the hostname or IP address to which datagrams
are sent.</entry>
<entry>Determines the network interface on which the object adapter
listens for datagrams, as well as the hostname that is advertised
in proxies created by the adapter.</entry>
</row>
<row>
<entry>-p <replaceable>port</replaceable></entry>
<entry>Specifies the port number of the endpoint.</entry>
<entry>Determines the port to which datagrams are sent. (required)</entry>
<entry>The port will be selected by the operating system if this option
is not specified or <replaceable>port</replaceable> is zero.</entry>
</row>
<row>
<entry>-c</entry>
<entry>Specifies that a connected UDP socket should be used.</entry>
<entry>None.</entry>
<entry>Causes the server to connect to the socket of the first peer
that sends a datagram to this endpoint.</entry>
</row>
<row>
<entry>-z</entry>
<entry>Specifies bzip2 compression.</entry>
<entry>Determines whether compressed requests are sent.</entry>
<entry>Determines whether compression is advertised in proxies created
by the adapter.</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</para>
</section>
</section>
<!-- ********************************************************************** -->
<section><title>SSL Endpoint</title>
<!-- ********************************************************************** -->
<section><title>Synopsis</title>
<cmdsynopsis>
<command>ssl</command>
<arg>-h <replaceable>host</replaceable></arg>
<arg>-p <replaceable>port</replaceable></arg>
<arg>-t <replaceable>timeout</replaceable></arg>
<arg>-z</arg>
</cmdsynopsis>
</section>
<section><title>Description</title>
<para>
An <literal>ssl</literal> endpoint supports the following options:
<informaltable>
<tgroup cols=4>
<thead>
<row>
<entry>Option</entry>
<entry>Description</entry>
<entry>Client Semantics</entry>
<entry>Server Semantics</entry>
</row>
</thead>
<tbody>
<row>
<entry>-h <replaceable>host</replaceable></entry>
<entry>Specifies the hostname or IP address of the endpoint. If not
specified, the value of <literal>Ice.Default.Host</literal> is used
instead.</entry>
<entry>Determines the hostname or IP address to which a connection
attempt is made.</entry>
<entry>Determines the network interface on which the object adapter
listens for connections, as well as the hostname that is advertised
in proxies created by the adapter.</entry>
</row>
<row>
<entry>-p <replaceable>port</replaceable></entry>
<entry>Specifies the port number of the endpoint.</entry>
<entry>Determines the port to which a connection attempt is made.
(required)</entry>
<entry>The port will be selected by the operating system if this option
is not specified or <replaceable>port</replaceable> is zero.</entry>
</row>
<row>
<entry>-t <replaceable>timeout</replaceable></entry>
<entry>Specifies the endpoint timeout in milliseconds.</entry>
<entry>If <replaceable>timeout</replaceable> is greater than zero,
it sets a maximum delay for binding and proxy invocations. If a timeout
occurs, the application receives <literal>Ice::TimeoutException</literal>.
</entry>
<entry>Determines the default timeout that is advertised in proxies
created by the object adapter.</entry>
</row>
<row>
<entry>-z</entry>
<entry>Specifies bzip2 compression.</entry>
<entry>Determines whether compressed requests are sent.</entry>
<entry>Determines whether compressed responses are sent, as well as
whether compression is advertised in proxies created by the
adapter.</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</para>
</section>
</section>
</section>
|