Michael Brown
c44a193d0d
[legal] Add a selection of FILE_LICENCE declarations
Add FILE_LICENCE declarations to almost all files that make up the
various standard builds of gPXE.
15 anos atrás
Michael Brown
323cdf8c4c
[xfer] Implement xfer_vreopen() to properly handle redirections
When handling a redirection event, we need to close the existing
connection before opening the new connection.
15 anos atrás
Michael Brown
96edbd128f
[PXEXT] Avoid queueing zero-length buffers in posix_io.c
read_user() assumes that zero-length buffers don't exist, and optimises
around this.
16 anos atrás
Michael Brown
ee5bdb0d75
[PXEXT] Avoid returning a false EOF when we have an empty buffer queued
16 anos atrás
Michael Brown
f6a8158eed
Make seek information part of the xfer metadata, rather than an entirely
separate xfer method.
Add missing .alloc_iob entries to several xfer_interface_operations
structures.
16 anos atrás
Michael Brown
698b5bc887
Fix a minor logical error in posix_io.c
16 anos atrás
Michael Brown
07f84566d5
Make read_user() non-blocking, and add select() call.
17 anos atrás
Michael Brown
b34d4d0449
Separate the "is data ready" function of xfer_seek() into an
xfer_window() function, which can return a scalar rather than a
boolean.
17 anos atrás
Michael Brown
ca4c6f9eee
Kill off unused request() method in data-xfer interface.
17 anos atrás
Holger Lubitz
f77d9469a4
convert to zalloc
17 anos atrás
Michael Brown
95adce0ce1
Add concept of transfer metadata, to be used by UDP in order to
implement sendto()/recvfrom() equivalents.
17 anos atrás
Michael Brown
2c569fb240
Allow xfer_open() to take a struct uri as well as a URI string.
17 anos atrás
Michael Brown
10d0a1f8c7
Modify data-xfer semantics: it is no longer necessary to call one of
request(), seek() or deliver_xxx() in order to start the data flow.
Autonomous generators must be genuinely autonomous (having their own
process), or otherwise arrange to be called. TCP does this by
starting the retry timer immediately.
Add some debugging statements.
17 anos atrás
Michael Brown
6006bed530
Free I/O buffers when we are finished with them!
17 anos atrás
Michael Brown
54138f28f6
Use list_for_each_entry_safe() when flushing queue.
17 anos atrás
Michael Brown
7d2535779c
Must request data before anything actually happens...
17 anos atrás
Michael Brown
86a948ccbe
Added POSIX-style blocking I/O calls, for use by PXE TFTP API.
17 anos atrás