You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

zeroc.ice.net

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zeroc.ice.net

The Ice framework provides everything you need to build networked applications, including RPC, pub/sub, server deployment, and more.

3.7.10
Source
nugetNuGet
Version published
Maintainers
1
Created
Source

Ice for .NET

Getting started | Examples | NuGet package | Documentation | Building from source

The Ice framework provides everything you need to build networked applications, including RPC, pub/sub, server deployment, and more.

Ice for .NET is the C# / .NET implementation of the Ice framework.

Sample Code

#pragma once

module Demo
{
    interface Hello
    {
        void sayHello();
    }
}
// Client application
using(var communicator = Ice.Util.initialize(ref args))
var hello = HelloPrxHelper.checkedCast(
    communicator.stringToProxy("hello:default -h localhost -p 10000"));
hello.sayHello();
// Server application
using(var communicator = Ice.Util.initialize(ref args))

// Shut down the communicator on Ctrl+C or Ctrl+Break.
Console.CancelKeyPress += (sender, eventArgs) =>
{
    eventArgs.Cancel = true;
    communicator.shutdown();
};

var adapter = communicator.createObjectAdapterWithEndpoints(
    "Hello",
    "default -h localhost -p 10000");
adapter.add(new Printer(), Ice.Util.stringToIdentity("hello"));
adapter.activate();
communicator.waitForShutdown();

public class Printer : HelloDisp_
{
    /// <summary>Prints a message to the standard output.</summary>
    public override void sayHello(Ice.Current current)
    {
        Console.WriteLine("Hello World!");
    }
}

Keywords

ice

FAQs

Package last updated on 06 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts