I'll start with my desired end-result, which is to sync my Arduino's time via NTP over the ethernet shield. I've been attempting this using snippets from the playground that utilize the UDPBytewise library. Without rehashing the many other posts I've encountered on the subject too much, I'm getting an error regarding the missing types.h file from 0019.
I'm currently using the 0022 environment & would love some assistance with this problem. I am also totally open to accomplishing this in any other manner. As I mentioned, I mostly just want to sync the Arduino's time via the ethernet shield.
I've tried the method you're using as well. As I continued to strip code away in an attempt to remove possible causes, I noticed that just including the Ethernet.h library in 0022 requires me to include the SPI library. As soon as I include SPI.h, I get the same error I was running into before:
/Applications/Arduino.app/Contents/Resources/Java/libraries/Ethernet/Dhcp.cpp:5:21: error: types.h: No such file or directory
With dhcp, I get ip address from the dhcp server on my LAN. With dns, I get ntp time from pool.ntp.org.
[/Begin disclaimer]
I am using Arduino Ethernet shields designed around the Wiznet 5100 chip. As far as I can tell, the same stuff should work with the Wiznet module that you have, but I have no way of testing.
[/End disclaimer]
I've pulled down the code you suggested and am going to give a shot. Would you be willing to post the code you used to fetch & set time using NTP? I'm currently working with a mash of code from timeNTP.pde, so I'd like to see how you did it with the new DHCP/DNS libraries I'm working with now.
Just wanted to reply & let you all know that the code in the 0022 examples worked great! I ended up setting up a local NTP server on my Fedora box & having the Arduino sync from there.