[英]WADO Protocol implemented in node.js
I am creating a very simple DICOM ECHO server with nodejs however I am facing a problem where the clients always respond as can't connect, I am unsure what I am missing, has someone here experience in writing a DICOM ECHO server?我正在使用 nodejs 创建一个非常简单的 DICOM ECHO 服务器,但是我面临一个问题,即客户端总是响应无法连接,我不确定我缺少什么,这里有人有编写 DICOM ECHO 服务器的经验吗?
This is the code I have这是我的代码
var net = require('net');
net.createServer(function(socket){
socket.on('data', function(data){
datat = String.fromCharCode.apply(null, new Uint16Array(data));
console.log(datat);
socket.write(data);
socket.end()
});
socket.on('error', function(error){
console.log("Caught server socket error: ")
console.log(error.stack)
console.log(error)
});
}).listen(8041);
console.log('Server running at 127.0.0.1 on port 8041');
I have tried responding with the binary data and also with text data but neither one seems to work.我曾尝试使用二进制数据和文本数据进行响应,但似乎都不起作用。
DICOM Echo is not as simple as a ping. DICOM Echo 不像 ping 那样简单。 You must implement a subset of the full stack of the DICOM network protocol.
您必须实现 DICOM 网络协议的完整堆栈的一个子集。 Instead of writing your own server with node.js, I would advise you to rely on an existing DICOM server.
与其使用 node.js 编写自己的服务器,我建议您依赖现有的 DICOM 服务器。 Orthanc is an example of a free DICOM server designed to act as a back-end service to Web applications.
Orthanc是一个免费的 DICOM 服务器示例,旨在充当 Web 应用程序的后端服务。 Orthanc has built-in support of DICOM C-Echo, which can be triggered by an AJAX request to its REST API (URI
/modalities/{dicom}/echo
). Orthanc 内置了对 DICOM C-Echo 的支持,它可以通过 AJAX 请求对其REST API (URI
/modalities/{dicom}/echo
) 触发。
Disclaimer : I am the author of Orthanc.免责声明:我是 Orthanc 的作者。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.