blob: 7e81a359f452e2eddc720c2088b5f8e159a85f60 (
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
|
// $Id$
#include "Locator_Request_Reply.h"
ACE_RCSID(Caching, test_URL, "$Id$")
int main (int argc, char *argv[])
{
ACE_UNUSED_ARG (argc);
ACE_UNUSED_ARG (argv);
ACE_URL_Locator_Request original, derived;
ACE_URL_Property_Seq ouch1(3);
ouch1[0].name ("name 1");
ouch1[0].value ("value 1");
ouch1[1].name ("name 2");
ouch1[1].value ("value 2");
ouch1[2].name ("name 3");
ouch1[2].value ("value 3");
original.url_query (1, ouch1, 3);
original.dump ();
derived.dump ();
original.encode ();
derived.decode ((void*) original.buffer ());
derived.dump ();
return 0;
}
|