mirror of
https://github.com/FabInfra/capnproto-dotnetcore_Runtime.git
synced 2025-03-13 07:11:44 +01:00
21 lines
465 B
C#
21 lines
465 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(IPAddress.Any, 5002))
|
|||
|
{
|
|||
|
server.Main = new CapnpEchoService();
|
|||
|
Console.WriteLine("Press RETURN to stop listening");
|
|||
|
Console.ReadLine();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|