1
This demo illustrates how to use MFC to create a simple IcePatch2
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
10
Assuming that your current working directory is demo/IcePatch2/MFC,
11
you can prepare the data files with the following command:
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:
19
> icepatch2server --IcePatch2.Endpoints="tcp -h 127.0.0.1 -p 10000" .
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:
25
> mkdir C:\icepatch_download
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):
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).
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
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
10
Assuming that your current working directory is demo/IcePatch2/MFC,
11
you can prepare the data files with the following command:
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:
19
> icepatch2server --IcePatch2.Endpoints="tcp -h 127.0.0.1 -p 10000" .
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:
25
> mkdir C:\icepatch_download
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):
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).
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.