Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/09/08 09:20
Read: times


 
#149165 - You need a Server
Responding to: ???'s previous message
Stefan Kanev said:
In this case to connect device (toaster or other type, without HTTP server, but with some serial port) to computer You will need some computer-side code between platform independent Java applet and serial cable.

The whole point of embedding the HTTP server is to obviate the need for any special "computer-side" code!

You can send HTTP over a simple serial port - using PPP, SLIP, or whatever (in fact, you do exactly this when using a dial-up modem).

In principle, sending a web page could be as simple as:
printf( "<html>"        );
printf( "<head>"        );
printf( "</head>"       );
printf( "<body>"        );
printf( "Hello, World!" );
printf( "</body>"       );
printf( "</html>"       );

Of course, you'd also need the TCP/IP stack.

For a toaster, the HTTP+TCP/IP would probably be 98% of the total code!

How far from OS-dependency can be this code? Something like Java subset for hardware access?!

The Java runtime for the specific platform would provide that - so your Java Application would be entirely platform-independent.

The problem is still that each device needs its own Java application; by embedding a webserver, you don't need any special "computer-side" code - just a standard browser!

And it's also entirely independent of the actual connection medium used - your browser is totally oblivious to whether you are using RS232, USB, Ethernet, a dial-up modem or whatever!



List of 35 messages in thread
TopicAuthorDate
PC Software tools            01/01/70 00:00      
   Why develop drivers?            01/01/70 00:00      
   PC Developer Resources            01/01/70 00:00      
   My experience            01/01/70 00:00      
      Delphi, C++ Builder, etc            01/01/70 00:00      
      Hey Rus... is Delphi5 a free download?            01/01/70 00:00      
         Delphi            01/01/70 00:00      
   My experience            01/01/70 00:00      
      other view            01/01/70 00:00      
         just to add to the bunch...            01/01/70 00:00      
         Tell me more            01/01/70 00:00      
            Open source Windows tools            01/01/70 00:00      
               Whilst we're talking languages            01/01/70 00:00      
                  example?            01/01/70 00:00      
                     Missing the point?            01/01/70 00:00      
                     Server            01/01/70 00:00      
                         Server - that's right!            01/01/70 00:00      
                           Toaster            01/01/70 00:00      
                  For the future            01/01/70 00:00      
                     WEB 2.0            01/01/70 00:00      
                        i'm asking about server-less toasters            01/01/70 00:00      
                           You need a Server            01/01/70 00:00      
                           http server and ethernet            01/01/70 00:00      
                        Ajax            01/01/70 00:00      
                           T-chart            01/01/70 00:00      
                              More trouble than its worth ?            01/01/70 00:00      
                              More trouble than its worth ?            01/01/70 00:00      
                                 Try moving to Vista!            01/01/70 00:00      
                                    Which is why...            01/01/70 00:00      
                              TeeChart            01/01/70 00:00      
                        Siteplayer            01/01/70 00:00      
            GNU tools for Win32            01/01/70 00:00      
      Thanks Russ, ... and more            01/01/70 00:00      
         Services            01/01/70 00:00      
            Thanks for the tip Andy            01/01/70 00:00      

Back to Subject List