sudhakar sudhakar - 2 months ago 16
Python Question

How to process UDP data in Appengine

I have a service provider who is transmitting data thro' UDP. I want to establish a connection to them, receive & process data (will be with in the 30 sec limit/request)

Is it possible to get & process UDP data in appengine. I am looking for some simple example.

Answer

Unfortunately I don't believe it's possible. The docs on the GAE python runtime say this:

An App Engine application cannot:

  • open a socket or access another host directly. An application can use the App Engine URL fetch service to make HTTP and HTTPS requests to other hosts on ports 80 and 443, respectively.

You would most likely use the socket module for UDP communication, which you can import on GAE, but does not contain any socket functionality (the module is empty).