views:

298

answers:

1

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.

+5  A: 

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).

lost-theory
Is it possible to have something like UDP over TCP. Or any other way to receive UDP data without using sockets. I am stuck up now as my dataprovider provides only udp
sudhakar
Not that I know of. How about writing a server (outside Google App Engine) that consumes the UDP communication, then sends that data as messages via HTTP to the GAE application?
lost-theory
+1 I am also thinking in the same lines
sudhakar