Cysharp/MessagePipe

Does a client only connect to one server?

qinglok opened this issue · 1 comments

I tried doing this, but "temp2 \ socket. tmp" didn't work,
"temp1\socket.tmp" and "temp1\socket.tmp" is from two different services:

Host.CreateDefaultBuilder()
    .ConfigureServices((ctx, services) =>
    {
        services.AddMessagePipe()
            .AddTcpInterprocessUds(@"d:\temp1\socket.tmp", x =>
            {
                x.HostAsServer = false; 
            })
            .AddTcpInterprocessUds(@"d:\temp2\socket.tmp", x =>
            {
                x.HostAsServer = false;
            });
    }).Build().Run();

"temp1\socket.tmp" With one socket:
image

"temp2\socket.tmp" No sockets:
image