CARVIEW |
Select Language
HTTP/2 200
date: Sat, 19 Jul 2025 15:41:30 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"582cfd713138d4101ded182a840794ff"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=wrowgalaCxYCui8w0%2BsX7kbWv%2BHTXs%2FAoATAqnoo5uV9xHynPkDIT64LewxTdMtbLvRG%2B73h3gTSyGHxthaQT3nHO%2FkPozC0WWkUstzvpkTKOrxiU7iWMJwl5J%2FkesfN09ZtIUliOjsOz7ejTaAAyuWm%2B7kpiAB4%2F1A9U%2FxF%2BftftaxmpWGEXV12NRlf%2FjpTfuvwew2nNjXw6noMuIYQVmpSTKGW2awOhFFm%2Bj9Fp1JWfyJXXgcw0scYYYvep1cqR0pQmjz9Uhyuc0ACMz9tuA%3D%3D--p84ZNbC6pftyi5jf--9%2FurRr3OpsqIZIBVhrUtHw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.2097887975.1752939689; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 15:41:29 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 15:41:29 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: AA72:1A6C04:841EAD:AB9D6A:687BBCA9
GitHub - zeroc-ice/ice-demos at 3.4
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 217
Sample programs for Ice
License
zeroc-ice/ice-demos
Â
Â
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
Repository files navigation
Table of Contents ----------------- 1. Building the Demos 2. Running the Ice Demos 3. Running the C++ demos 4. Running the Java demos 5. Running the Android demos 6. Running the C# demos 7. Running the Python demos 8. Running the Ruby demos 9. Running the PHP demos ====================================================================== 1. Building the Demos ====================================================================== This section describes how to build the demos included in the Ice demo distribution. The demo archive contains sample programs for each language mapping that Ice supports. Not all demos will build against all Ice distributions. Distributions for specific platform/tool combinations may not support every Ice language mapping. Depending on the language mapping, various build tools are required for building the demos. The C++, C#, and PHP demos use makefiles, the Java demos use the Apache Foundation's ant build tool, and the Android demos require Eclipse and the Slice2Java plug-in. NOTE: The Ruby and Python demos do not need to be built. Prerequisites ------------- The makefiles for C++, C#, and PHP require GNU make 3.80 or later. If your system does not come with GNU make, you can find information on how to acquire it at the following link: https://www.gnu.org/software/make/ The Ice for Java demos require Ant 1.7.0, but we recommend using the most recent release available. Ant can be obtained at: https://ant.apache.org/bindownload.cgi The Ice for Android demos require Eclipse and the Slice2Java plug-in. The demos were tested with Eclipse Helios (3.6). Instructions for installing the Slice2Java plug-in are available on the ZeroC web site: https://www.zeroc.com/eclipse.html Build Instructions ------------------ To build the demos you need to: - Configure your system according to the directions in the main README file (for binary distributions) or the platform-specific INSTALL file (if you built Ice from sources). - If you are using a non-RPM installation and you did not install Ice in its default location (/opt/Ice-3.4.2), set the environment variable ICE_HOME to point to your Ice installation root directory. For example, in a Bash shell: $ export ICE_HOME=$HOME/testing/Ice-3.4.2 With a non-RPM installation, you also need to either create an /opt/Ice-3.4 symbolic link (as described in the binary distribution README file), or add the Ice library directory to your shared library search path. For example, on Linux x86: $ export LD_LIBRARY_PATH=$ICE_HOME/lib:$LD_LIBRARY_PATH The Ice library directory is $ICE_HOME/lib64 on Linux x86_64, $ICE_HOME/lib/sparcv9 on Solaris for SPARC 64-bit and $ICE_HOME/lib/amd64 on Solaris for x86 64-bit. - Review the build settings found in config/Make.rules (C++), config/Make.rules.cs (C#), config/Make.rules.php (PHP) and config/build.properties (Java) and adjust any you want changed. For example, for C++ and C#, set OPTIMIZE=yes in order to build with optimization, or for C++ set LP64=yes if you are building against a 64-bit Ice installation (on Mac OS X, set CXXARCHFLAGS to build 32-bit and 64-bit FAT binaries). - Build the demos. For example: # C++ demos cd Ice-3.4.2-demos/demo make # C# demos cd Ice-3.4.2-demos/democs make # PHP demos cd Ice-3.4.2-demos/demophp make # Java demos cd Ice-3.4.2-demos/demoj ant Build Instructions for Android ------------------------------ Several sample Android projects are provided in the demoj/android subdirectory. You must use Eclipse and the Slice2Java plug-in to build these projects. In Eclipse, you can open a sample project by choosing File->Import...; in the "General" group, select "Existing Project into Workspace", then open one of the subdirectories of demoj/android. The sample projects are configured to locate the Ice run time JAR file (Ice.jar) via the ICE_HOME classpath variable, as described in the Ice manual: https://doc.zeroc.com/display/Ice/Eclipse+Plug-in If you installed Ice.jar in a different location, you will need to add it as an external JAR file in each sample project: 1. Open the project's properties and select Java Build Path 2. Click on the Libraries tab 3. Click Add External JARs... and navigate to Ice.jar 4. Click OK to save your settings ====================================================================== 2. Running the Ice Demos ====================================================================== Most demos consist of a single server and client. The instructions to run a demo depend on the programming language. Instructions for each language are included below. Some demo directories contain README files if additional steps are necessary. ====================================================================== 3. Running the C++ demos ====================================================================== To run a demo, open a terminal window, change to the desired demo directory, and enter the following command to run the server: $ ./server To run the client, open another terminal window, also change to the desired demo directory, and run: $ ./client ====================================================================== 4. Running the Java demos ====================================================================== After a successful build, the compiled classes are stored in a subdirectory named "classes" in each demo directory. You need to add this subdirectory to your CLASSPATH. For example, with a bash shell: $ export CLASSPATH=classes:$CLASSPATH To run a demo, open a terminal window, change to the desired demo directory, and enter the following command to run the server: $ java Server To run the client, open another terminal window, also change to the desired demo directory, and run: $ java Client ====================================================================== 5. Running the Android demos ====================================================================== After successfully building an Android project, deploy it onto a suitable emulator or device and review the README file in the project subdirectory for further instructions. ====================================================================== 6. Running the C# demos ====================================================================== The C# demos are only supported on SuSE Enterprise Linux Server but may work on other platforms. Note however that the Ice for .NET run time is included only in the RPM distribution for SuSE Enterprise Linux Server. To run a demo, open a terminal window, change to the desired demo directory, and enter the following command to run the server: $ mono server.exe To run the client, open another terminal window, also change to the desired demo directory, and run: $ mono client.exe ====================================================================== 7. Running the Python demos ====================================================================== To run a demo, open a terminal window, change to the desired demo directory, and enter the following command to run the server: $ python Server.py To run the client, open another terminal window, also change to the desired demo directory, and run: $ python Client.py ====================================================================== 8. Running the Ruby demos ====================================================================== Ice provides only client demos in Ruby since Ice for Ruby does not support server-side activities. In order to run a sample client, you must first start its corresponding server from another Ice language mapping. For example, start the C++ hello server: $ cd $HOME/testing/Ice-3.4.2-demos/demo/Ice/hello $ ./server To run the client, open another terminal window, change to the corresponding demo directory, and run: $ cd $HOME/testing/Ice-3.4.2-demos/demorb/Ice/hello $ ruby Client.rb ====================================================================== 9. Running the PHP demos ====================================================================== PHP demos are provided in the demophp directory. The Ice extension for PHP is provided as a dynamically-loadable shared library in Linux RPM distributions. On all other Unix platforms, you will need to build PHP and the Ice extension from source code. Please refer to the php/INSTALL file included in the Ice source distribution for more information. The examples in demophp/Ice/hello and demophp/Glacier2/hello demonstrate the use of the Ice extension for PHP in a dynamic Web page, whereas the example in demophp/Ice/value requires PHP's command line interpreter. All examples require that an Ice server be available; a matching server from any of the other language mappings can be used. A README file is provided in each of the example directories. Note that you may need to modify the php.ini files in each demo directory to match your PHP installation and ensure that the Ice extension is loaded properly.
About
Sample programs for Ice
Topics
Resources
License
Code of conduct
Security policy
Stars
Watchers
Forks
Packages 0
No packages published
You can’t perform that action at this time.