[英]echo-server with asp.net
I have ASP.NET server. 我有ASP.NET服务器。
I have an embedded device with cellular communication (socket based) - the device is not a web-browser. 我有一个具有蜂窝通信功能的嵌入式设备(基于套接字)-该设备不是Web浏览器。
I want to be able to access an ASP.NET page ( .aspx
) and get a reply. 我希望能够访问ASP.NET页(
.aspx
)并得到答复。
To begin with, I want to send binary data \\x11\\x22\\x33
and get the same reply from the server (echo-server). 首先,我要发送二进制数据
\\x11\\x22\\x33
并从服务器(回显服务器)获得相同的答复。
Any guidelines on how to implement the ASP.NET code or a reference to similar project will help too. 任何有关如何实现ASP.NET代码的准则或对类似项目的引用也将有所帮助。 Thanks.
谢谢。
ASP.NET runs in the IIS webserver context. ASP.NET在IIS Web服务器上下文中运行。 If you want to process a request using ASP.NET, it has to be an HTTP request.
如果要使用ASP.NET处理请求,则它必须是HTTP请求。 You can echo the content of the HTTP request in the HTTP response, but it won't be a real echo server.
您可以在HTTP响应中回显HTTP请求的内容,但它不是真正的回显服务器。
Alternatively, you can make an echo server using .NET, without using ASP.NET and without a webserver. 或者,您可以使用.NET创建回显服务器,而无需使用ASP.NET和Web服务器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.