mirror of
https://github.com/FabInfra/capnproto-dotnetcore_Runtime.git
synced 2025-03-12 23:01:44 +01:00
23 lines
545 B
C#
23 lines
545 B
C#
using Capnp.Rpc;
|
|
using EchoServiceCapnp.Services;
|
|
using System;
|
|
using System.Net;
|
|
|
|
namespace EchoServiceCapnp
|
|
{
|
|
class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
using (var server = new TcpRpcServer())
|
|
{
|
|
server.AddBuffering();
|
|
server.Main = new CapnpEchoService();
|
|
server.StartAccepting(IPAddress.Any, 5002);
|
|
Console.WriteLine("Press RETURN to stop listening");
|
|
Console.ReadLine();
|
|
}
|
|
}
|
|
}
|
|
}
|