ENC28J60 Web Server

Dear Andy.
I really appreciate your reply

AndyL:
Hi,

The work I've done on the ENC28J60 library for the nuelectronics ethershield has really been driven by things I've needed for my own applications. However, feedback and comments are most welcome. Plus if you have any changes/updates that you have done, these can be fed back into the main code by myself or you can release your own version!

In answer to your questions:

  1. Is something I'm looking at, to provide alternative methods that dont use flash memory for the strings.

Ah ... I'm not that good to realease my own version.

I just replace some "prog char" to "char", and some "fill_tcp_data_p" with "fill_tcp_data" in www_client_internal_datafill_callback, and in client_browse_url part.

Question :
There is "buf" that created/declared inside the sketch.
Is it the same "buf" that used inside "ip_arp_udp_tcp.c" ?

If so, since the final process is :
client_tcp_req(&www_client_internal_result_callback,&www_client_internal_datafill_callback,80)
I'm thinking of doing www_client_internal_datafill_callback inside the sketch and just call www_client_internal_result_callback after it.

Is it doable ?

AndyL:
2. The library is set up for single packet send and receive so its a trade off between available memory and a usable packet size. If you need more flexibility in this area then a hardware solution such as a shield with the alternative chips may be the correct way to go for your needs. The ENC28J60 is a cheap solution because it provides just the basic packet framing, the IP and TCP layers are done in software, but it is exactly this reason that makes it very flexible too.

The library I have produced can still be classed as a work in progress, there are things I'd like to see in there for my own use but as yet havnt got round to them. To many other distractions I'm afraid.

well ... for www-server part ...
I'm thinking of just send out some java script with xmlhttprequest in it.
I think the server can throw it at once ... and let the browser auto-request for other part of the doc. I found some where in internet the guy that write about dinamic table creation using xmlhttprequest.
I think with this approach, we can make our sketch to send as much data as we wish.

I really appreciate your library.

Sincerely
-bino-