GAE和套接字数据(GAE and Socket Data)

编程入门 行业动态 更新时间:2024-10-24 22:18:21
GAE和套接字数据(GAE and Socket Data)

我有一个现场设备,它继续使用套接字将数据发送到任何指定的端口。 我计划将GAE用于服务器端基础架构。

我读过GAE不支持套接字。 但我可以将设备配置为通过端口80发送数据。因此我们编写了一个genericservlet来在GAE上捕获这些数据。 但它没有从客户那里获得任何价值。

有什么建议可以解决这个问题?

I have a field device which keeps on sending data over to any designated port using sockets. I am planning to use GAE for server-side infrastructure.

I read GAE does not support sockets. But i can configure the device to send the data over port 80. so we wrote a genericservlet to capture this data on GAE. But it is not obtaining any values from the client.

any suggestions to fix this issue?

最满意答案

您只能使用GAE在整个请求的基础上进行处理。 您的请求被缓冲(最多10MB)然后传递给您的servlet完成。 如果您可以将设备配置为使用数据作为参数发送http请求,或者甚至批量处理这些请求,则可以使用GAE处理这些请求。 GAE仅将输入作为HTTP请求,XMPP和电子邮件处理。

You can only do processing on a whole of request basis using GAE. your request is buffered (up to a maximum of 10MB) then passed to your servlet complete. If you can configure your device to send http requests with the data as a parameter, or even to batch these then you can process these requests using GAE. GAE only process input as HTTP requests, XMPP, and email.

更多推荐

本文发布于:2023-08-01 17:16:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1361431.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:字数   GAE   Data   Socket

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!