コード例 #1
0
        public void ServerAsync()
        {
            using var server = new ResponseSocket();
            var url = ConnectionUrl.Replace("127.0.0.1", "*");

            server.Bind($"tcp://{url}");

            while (server.TryReceiveFrameString(timeout: TimeSpan.FromMinutes(5), out string responseMessage))
            {
                _networkAdapter.Receive(responseMessage);
                server.TrySignalOK();
            }
        }