1

I thinking of building a mini-server where Java can send data through UDP protocol so that my other Flex application can read. The data consist of short string of up to 64 characters. Should I consider HTTP instead?

Where can I find out more tutorial on building HTTP/UDP web server

Proyb2
  • 995
  • 6
  • 13
  • 35

1 Answers1

3

HTTP does not work over UDP - see this question for details.

For information about UDP in Java, you may look at corresponding section of standard tutorial.

For simple HTTP requests via Java you may take a look at HttpUrlConnection class documentation, and at this section of Java tutorial.

Trivial HTTP server may be implemented with pure Java sockets. For support of wide HTTP functionality, you may take a look at HttpComponents

Also, you may look at the this site

Community
  • 1
  • 1
Kel
  • 7,680
  • 3
  • 29
  • 39