User`s manual
.NETFOPN
5-40
5
.NETFOPN
Name
.NETFOPN - Open Þle for reading
Code
$001B
Description
This routine allows the user to open a Þle for reading. The Þrmware
basically transmits a TFTP Read Request for the speciÞed Þle and
returns to the user. It is your responsibility to retrieve the
forthcoming Þle blocks; you would use the .NETFRD system call to
do this. You must also perform the Þle block retrievals in a timely
fashion, else the TFTP server will time-out.
Information about the Þle open/request is passed in a command
packet which has been built in memory. (The user program must
Þrst manually prepare the packet.) The address of the packet is
passed as an argument to the routine. All packets must be word-
aligned.
The format of the packet structure, NFILEOPEN, is shown below:
FEDCBA9876543210
$00 Controller LUN Device LUN
$02 Status Word
$04
$42
Filename String $40(&64) Bytes