Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to index page
Thread view  Board view
mbbrutman

Homepage

Washington, USA,
11.08.2010, 06:03
 

Simple Network Time Protol (SNTP) Client for DOS (Announce)

This has been on my todo list for a long time and I am giving everybody here the first peek at it. (My XT doesn't have a clock/calendar, so this is really helpful!)

http://www.brutman.com/mTCP/sntp.exe

This will make it into the next release of mTCP, but for now a raw EXE file will have to do. :-) Follow the normal mTCP setup directions (load a packet driver and do a minimal configuration file) to get it to work.

One thing that needs to be done first is setting the TZ environment variable so that the program knows what timezone you are in. I'm using WATCOM and that follows the POSIX standard where timezones west of GMT use positive offsets while timezones east of GMT use negative ones. (This is opposite of what Windows and normal people do.) Here are some examples:

set TZ=EST5EDT (US Eastern Standard, 5 hour offset, DST is observed)
set TZ=CST6CDT (US Central, 6 hour offset, DST is observed)
set TZ=UTC-1 (One hour east of GMT, somewhere in Europe maybe?)
set TZ=CET-2CDT (Two hours east of GMT, DST is observed)

The full rules for setting it, including how to write a rule for when DST is observed can be found in the WATCOM docs. I'll have it in the readme, but this should get you started.

Yell if you have problems or comments.


-Mike

---
mTCP - TCP/IP apps for vintage DOS machines!
http://www.brutman.com/mTCP

Back to index page
Thread view  Board view
22632 Postings in 2109 Threads, 402 registered users, 376 users online (0 registered, 376 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum