ZeroC.Ice
3.8.0
Prefix Reserved
See the version list below for details.
dotnet add package ZeroC.Ice --version 3.8.0
NuGet\Install-Package ZeroC.Ice -Version 3.8.0
<PackageReference Include="ZeroC.Ice" Version="3.8.0" />
<PackageVersion Include="ZeroC.Ice" Version="3.8.0" />
<PackageReference Include="ZeroC.Ice" />
paket add ZeroC.Ice --version 3.8.0
#r "nuget: ZeroC.Ice, 3.8.0"
#:package ZeroC.Ice@3.8.0
#addin nuget:?package=ZeroC.Ice&version=3.8.0
#tool nuget:?package=ZeroC.Ice&version=3.8.0
Ice
The Internet Communications Engine (Ice) is a complete RPC framework that helps you build networked applications with minimal effort. Ice allows you to focus your efforts on your application logic, and it takes care of all interactions with low-level network programming interfaces. With Ice, there is no need to worry about details such as opening network connections, serializing and deserializing data for network transmission, or retrying failed connection attempts.
Package | Source code | Examples | Documentation | API reference
Sample Code
// Slice contract
module VisitorCenter
{
/// Represents a simple greeter.
interface Greeter
{
/// Creates a personalized greeting.
/// @param name The name of the person to greet.
/// @return The greeting.
["cs:identifier:Greet"] // We prefer PascalCase for C# methods.
string greet(string name);
}
}
// Client application
// Slice module VisitorCenter in Greeter.ice maps to C# namespace VisitorCenter.
using VisitorCenter;
// Create an Ice communicator.
await using var communicator = new Ice.Communicator(ref args);
// GreeterPrx is a class generated by the Slice compiler. We create a proxy from a communicator and a "stringified
// proxy" with the address of the target object.
GreeterPrx greeter = GreeterPrxHelper.createProxy(communicator, "greeter:tcp -h localhost -p 4061");
// Send a request to the remote object and get the response.
string greeting = await greeter.GreetAsync(Environment.UserName);
Console.WriteLine(greeting);
// Server application
// Create an Ice communicator.
await using var communicator = new Ice.Communicator(ref args);
// Create an object adapter that listens for incoming requests and dispatches them to servants.
Ice.ObjectAdapter adapter = communicator.createObjectAdapterWithEndpoints("GreeterAdapter", "tcp -p 4061");
// Register the Chatbot servant with the adapter.
adapter.add(new Server.Chatbot(), new Ice.Identity { name = "greeter" });
// Start dispatching requests.
adapter.activate();
Console.WriteLine("Listening on port 4061...");
// Shut down the communicator when the user presses Ctrl+C.
Console.CancelKeyPress += (sender, eventArgs) =>
{
eventArgs.Cancel = true; // don't terminate the process
Console.WriteLine("Caught Ctrl+C, shutting down...");
communicator.shutdown(); // starts shutting down
};
// Wait until the communicator is shut down. Here, this occurs when the user presses Ctrl+C.
await communicator.shutdownCompleted;
/// <summary>Chatbot is an Ice servant that implements Slice interface Greeter.</summary>
internal class Chatbot : GreeterDisp_
{
/// <inheritdoc/>
// Implements the abstract method Greet from the GreeterDisp_ class generated by the Slice compiler.
// This variant is the synchronous implementation.
public override string Greet(string name, Ice.Current current)
{
Console.WriteLine($"Dispatching greet request {{ name = '{name}' }}");
return $"Hello, {name}!";
}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- No dependencies.
NuGet packages (6)
Showing the top 5 NuGet packages that depend on ZeroC.Ice:
| Package | Downloads |
|---|---|
|
ZeroC.Glacier2
Client library for the Glacier2 service |
|
|
ZeroC.IceStorm
Client library for the IceStorm service |
|
|
ZeroC.IceGrid
Client library for the IceGrid service |
|
|
ZeroC.IceBox
Client library for the IceBox service |
|
|
ZeroC.IceLocatorDiscovery
The IceLocatorDiscovery plug-in |
GitHub repositories
This package is not used by any popular GitHub repositories.