# Class type virtual Nethttpd_types.v_extended_environment

    class type virtual v_extended_environment = object .. end

An extension of `cgi_environment` for use with the daemon. The methods retrieve the socket addresses are virtual.
Inherits

- `Netcgi_env.cgi_environment`

    method virtual server_socket_addr : Unix.sockaddr

    method virtual remote_socket_addr : Unix.sockaddr

These are always the physical IP addresses and ports of the two endpoints of the current connection.

    method send_file : Unix.file_descr -> int64 -> unit

Sends the output header with a file as body. The file must already be open, and positioned where the transmission begins. The number is the length of the transmission.

This method may return immediately when it is possible to open the file, and to set the kernel up for file transmission. Otherwise a `Unix_error` is raised. It is also allowed that this method blocks until the file is actually transmitted.

It is not allowed to print to the output channel and to call `send_file`. Only one transmission method must be invoked.