delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/06/17/15:24:06

Message-ID: <055b01c33505$aecfabe0$0600000a@broadpark.no>
From: "Gisle Vanem" <giva AT bgnett DOT no>
To: "djgpp" <djgpp AT delorie DOT com>
Subject: Custom COFF-header
Date: Tue, 17 Jun 2003 21:21:41 +0200
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Reply-To: djgpp AT delorie DOT com

Is it possible to add custom fields to the COFF or stub.asm header
without destroying anything (checksums etc.).

Problem: I want to read N*512 blocks of an djgpp .exe-image
from a tftp-server to a diskless (only RAM-disk) client. In order
not to transfer the same image when not needed, I want to check
against some timestamp and version info in COFF header.
If they match, I terminated the tftp transfer and go on with my 
business.

tftp is very simple udp based protocol which doesn't carry
filetime very well :)  As an alternative I though of using HTTP
with ranges; i.e. read the last block only. I cannot use 
the HTTP "if-modified-since" header since the client-clock 
can be off by hours.

Any ideas?

Gisle V.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019