Re: Applet in C filesystem

"Fred" <beagle2-h4u632SxQnhWk0Htik3J/[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <[email protected]>
Array

Tom,
Sucess!!! Thanks to my lecturer's advice, I managed to fix the problem.
The problem is that I wasn't sending the TCP header that is required before sending the file i.e. 
send(handle, RESPONSE_OK, strlen(RESPONSE_OK), 0);
send(handle, CRLF, strlen(CRLF), 0);

Perhaps Dallas might like to add this to the next version if the timeserver example.

Thanks anyway

Fred


----- Original Message -----
From: "Tom Blough" <[email protected]>
To: beagle2-h4u632SxQnhWk0Htik3J/[email protected], [email protected]
Sent: Thursday, March 11, 2004 12:52 PM
Subject: [TINI]Applet in C filesystem

 Fred, just to double check it's not a security restriction problem, can you
 try putting the html and class files on some other web server and executing
 them from there?
 
 One other thing that comes to mind is the possibility of your browsers
 security settings.  IIRC, IE6 has separate security settings for intranet
 and internet.  You may have Java enabled for the intranet (which is why it
 works when served from your machine), but not for the internet.
 
 Tom
 
 -----Original Message-----
 From: Fred [mailto:beagle2-h4u632SxQnhWk0Htik3J/[email protected]]
 Sent: Thursday, March 11, 2004 6:17 AM
 To: [email protected]; [email protected]
 Subject: Re: [TINI]Applet in C filesystem

 
 
 Tom,
 
 I believe so.  I basically took the timeserver sample application that comes
 with the C libraries, and replaced index.html and source.html with my applet
 carrying index.html and the .class file that is the applet.  I just can't
 get it to work for some reason.
 I know the applet works because I've tried it locally.
 The applet seems to be getting to the host computer (maybe not in one single
 piece), but it just doesn't load.
 
 Thanks 
 
 Fred
 
 ----- Original Message -----
 From: "Tom Blough" <[email protected]>
 To: beagle2-h4u632SxQnhWk0Htik3J/[email protected], [email protected]
 Sent: Tuesday, March 09, 2004 04:23 PM
 Subject: [TINI]Applet in C filesystem
 
  Fred,
  
  Is the applet being served from the same web root as the webpage requesting
  it?  Sandbox restrictions prevent cross loading of applets.
  
  
  Tom Blough
  
  -----Original Message-----
  From: Fred [mailto:beagle2-h4u632SxQnhWk0Htik3J/[email protected]]
  Sent: Monday, March 08, 2004 6:27 PM
  To: tini-6tN4nzCoH/[email protected]
  Subject: [TINI]Applet in C filesystem
  
  
  Hi all,
  
  I have tested the timeserver application (in C) and it works OK.  My
 problem
  is that I am trying to serve an applet from the web server in C.  For some
  reason, I can't get it to work.  The webpage load but the applet says
  'Applet notinited'.  When I open the webpage in its local folder, the
 applet
  loads fine.  
  I have monitored the network using a network tool, and can see the applet
  being sent from the TINI to the host. 
  My feeling is, that the .class file is being sent as an ascii file (either
  from the TFTP server to the TINI or from the TINI to the host computer, or
  both).  And this is causing the problem.  Any commernts about this?
  
  If I can't get it to work. I believe I can convert the .class file (or .jar
  file) into a hex file and flash it onto the board.  Then write some 8051
  code to execute this image.  But I do not know how to write the code to do
  this.  Any help will be greatly appreciated.
  
  Thanks
  
  Freddy

FadMart - http://www.fadmart.com - An Associate of the World's Largest Store!
_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.