Ice helps you build networked applications with minimal effort. By taking care of all interactions with low-level network programming interfaces, Ice allows you to focus your efforts on your application logic. You don't need to worry about details such as opening network connections, encoding and decoding data for network transmission, or retrying failed connection attempts (to name just a few of dozens of such low-level details).
Downloads | Examples | Documentation
Remote procedure calls (RPCs) are at the heart of the Ice framework.
You create RPCs with an easy 2-step process:
- Define the contract between your client and your server with the Slice language—Ice's IDL.
- Run the Slice compiler on these Slice definitions to generate stubs in the programming language(s) of your choice.
For example:
// The contract specified using Slice.
/// Represents a simple greeter.
interface Greeter
{
/// Creates a personalized greeting.
/// @param name The name of the person to greet.
/// @return The greeting.
string greet(string name);
}
# Compile the Slice contract with the Slice compiler for C++ (slice2cpp)
slice2cpp Greeter.ice
// C++ client
// Call operation greet on a remote object that implements
// interface Greeter using the generated proxy class (GreeterPrx).
GreeterPrx greeter{communicator, "greeter:tcp -h localhost -p 4061"};
string greeting = greeter->greet("alice");
// C++ server
// Implements the Greeter interface by deriving from the generated
// Greeter abstract base class.
class Chatbot : public Greeter
{
public:
std::string greet(std::string name, const Ice::Current&) override
{
std::ostringstream os;
os << "Hello, " << name << "!";
return os.str();
}
};
You can use any supported programming language for your client and server. For example, a Python client could call a C++ server; neither side knows the programming language used by the other side.
The Ice framework provides everything you need to build networked applications:
- RPCs with a compact binary protocol over a variety of network transports (TCP, UDP, WebSocket, Bluetooth...)
- Secure communications (IceSSL)
- Configuration (Ice Properties)
- Logging (Ice Logger)
- Instrumentation and metrics (IceMX)
- Pub-sub (IceStorm, DataStorm)
- Server deployment, replication and monitoring (IceGrid)
- Application gateway (Glacier2)
C++ | C# | Java | JavaScript/TypeScript | MATLAB | PHP | Python | Ruby | Swift
Ice is a single-copyright project: all the source code in this ice repository is Copyright © ZeroC, Inc., with very few exceptions.
As copyright owner, ZeroC can license Ice under different license terms, and offers the following licenses for Ice:
- GPLv2, a popular open-source license with strong copyleft conditions (the default license)
- Commercial or closed-source licenses
If you license Ice under GPLv2, there is no license fee or signed license agreement: you just need to comply with the GPLv2 terms and conditions. ZeroC also grants a few exceptions to the GPLv2 terms and conditions.
If you purchase a commercial or closed-source license for Ice, you must comply with the terms and conditions listed in the associated license agreement; the GPLv2 terms and conditions do not apply.
The Ice software itself remains the same: the only difference between an open-source Ice and a commercial Ice are the license terms.