~ubuntu-branches/ubuntu/quantal/zeroc-ice/quantal

« back to all changes in this revision

Viewing changes to cpp/demo/IcePatch2/MFC/README

  • Committer: Bazaar Package Importer
  • Author(s): Cleto Martin Angelina
  • Date: 2011-04-25 18:44:24 UTC
  • mfrom: (6.1.14 sid)
  • Revision ID: james.westby@ubuntu.com-20110425184424-sep9i9euu434vq4c
Tags: 3.4.1-7
* Bug fix: "libdb5.1-java.jar was renamed to db.jar", thanks to Ondřej
  Surý (Closes: #623555).
* Bug fix: "causes noise in php5", thanks to Jayen Ashar (Closes:
  #623533).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
This demo illustrates how to use MFC to create a simple IcePatch2
2
 
client application.
3
 
 
4
 
In order to use this demo, you must first prepare a sample data
5
 
directory for the IcePatch2 server. The contents of the data
6
 
directory are what the client will receive during the patch process.
7
 
For convenience, this example uses its own source files as the data
8
 
to be patched.
9
 
 
10
 
Assuming that your current working directory is demo/IcePatch2/MFC,
11
 
you can prepare the data files with the following command:
12
 
 
13
 
> icepatch2calc .
14
 
 
15
 
Next, start the IcePatch2 server. Note that the trailing "." argument
16
 
in the following command is required and directs the server to use the
17
 
current directory as its data directory:
18
 
 
19
 
> icepatch2server --IcePatch2.Endpoints="tcp -h 127.0.0.1 -p 10000" .
20
 
 
21
 
Before we start the patch client, we must first create an empty
22
 
directory where the downloaded files will be placed. For example, open
23
 
a new command window and execute this command:
24
 
 
25
 
> mkdir C:\icepatch_download
26
 
 
27
 
Now you can start the IcePatch2 client (You will also need to pass an
28
 
argument that defines IcePatch2.Endpoints if you use an endpoint other
29
 
than the one shown above when you start icepatch2server):
30
 
 
31
 
> client
32
 
 
33
 
Click the "..." button to the right of the Patch Directory field and
34
 
select the empty directory you just created. Then click the "Patch"
35
 
button to begin the patch process. The first time you click this
36
 
button you will be prompted to confirm that you want to perform a
37
 
thorough patch (because the target download directory is empty).
38
 
 
39
 
If you add files or delete files from the data directory or make
40
 
changes to existing files, you must stop the server, run icepatch2calc
41
 
again to update the data files, and then restart the IcePatch2 server.
 
1
This demo illustrates how to use MFC to create a simple IcePatch2
 
2
client application.
 
3
 
 
4
In order to use this demo, you must first prepare a sample data
 
5
directory for the IcePatch2 server. The contents of the data
 
6
directory are what the client will receive during the patch process.
 
7
For convenience, this example uses its own source files as the data
 
8
to be patched.
 
9
 
 
10
Assuming that your current working directory is demo/IcePatch2/MFC,
 
11
you can prepare the data files with the following command:
 
12
 
 
13
> icepatch2calc .
 
14
 
 
15
Next, start the IcePatch2 server. Note that the trailing "." argument
 
16
in the following command is required and directs the server to use the
 
17
current directory as its data directory:
 
18
 
 
19
> icepatch2server --IcePatch2.Endpoints="tcp -h 127.0.0.1 -p 10000" .
 
20
 
 
21
Before we start the patch client, we must first create an empty
 
22
directory where the downloaded files will be placed. For example, open
 
23
a new command window and execute this command:
 
24
 
 
25
> mkdir C:\icepatch_download
 
26
 
 
27
Now you can start the IcePatch2 client (You will also need to pass an
 
28
argument that defines IcePatch2.Endpoints if you use an endpoint other
 
29
than the one shown above when you start icepatch2server):
 
30
 
 
31
> client
 
32
 
 
33
Click the "..." button to the right of the Patch Directory field and
 
34
select the empty directory you just created. Then click the "Patch"
 
35
button to begin the patch process. The first time you click this
 
36
button you will be prompted to confirm that you want to perform a
 
37
thorough patch (because the target download directory is empty).
 
38
 
 
39
If you add files or delete files from the data directory or make
 
40
changes to existing files, you must stop the server, run icepatch2calc
 
41
again to update the data files, and then restart the IcePatch2 server.