Really in Appengine you should be receiving the data in HTTP format*.
Rather than arbitrary 'packets'.

As you say you can't open listening sockets. AppEngine is really setup for
handling HTTP requests.


*( there are interfaces to transform other protocols into HTTP for you eg
receiving Emails, XMPP messages, or WebSocket style interace via the
Channel API - various underlying protocols in reality)


Compute Engine would be a better choice
https://cloud.google.com/compute/


Having said that there is
https://cloud.google.com/appengine/docs/managed-vms/
which is estentially a AppEngine managed Cloud Compute instance. So you get
the great APIs of appengine, but a bit more flexiblity - I think that would
include opening listening sockets.





On 2 February 2015 at 10:42, jesus cabrera polo <[email protected]>
wrote:

> Hello, Im migrating a project to AppEngine and i want to get the packet
> from several devices . Before in a centos server , i had a java service
> that open socket and listen for udp packet and store it in bd .
> there are not to much information about it  only that socket it is for
> paid app , can not be a listen socket .
> i read it using a net.DatagramSocket like :
> socket = new DatagramSocket(port);
> byte[] data= new byte[300];
> DatagramPacket packet= new DatagramPacket(data, data.length);
> socket.receive(packet);
>
> Can you please suggest me a alternative to read the device packets in
> Appengine.?
> Thanks a lot.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/google-appengine.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/3497dbd6-93fc-4784-9a8f-3a5511739bb2%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/3497dbd6-93fc-4784-9a8f-3a5511739bb2%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CAJCAUuJ%2BVUzH13AgqfCGQqX33P5Xx_4Lwx6g8wPJAO7sJ%2BP4eA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to