ELinks 0.18.0
itrm_out Struct Reference

Things going out from an itrm, whether to the terminal or to the master. More...

#include <itrm.h>

Collaboration diagram for itrm_out:

Data Fields

int std
 A file descriptor for the standard output.
int sock
 A file descriptor for a pipe or socket to which this process sends input events.
struct itrm_queue queue
 Bytes that should be written to sock.

Detailed Description

Things going out from an itrm, whether to the terminal or to the master.

Field Documentation

◆ queue

struct itrm_queue itrm_out::queue

Bytes that should be written to sock.

They will be written when select() indicates the write won't block. To add data here, call itrm_queue_event(), which reallocates itrm_queue.data if appropriate. The size of this queue is unrelated to ITRM_OUT_QUEUE_SIZE.

◆ sock

int itrm_out::sock

A file descriptor for a pipe or socket to which this process sends input events.

The other end of the pipe or socket connection is terminal.fdin in the master process. If the connection is from the master process to itself, it uses a pipe; otherwise a socket. The events are formatted as struct interlink_event, but at the beginning of the connection, a struct terminal_info and extra data are also sent.

◆ std

int itrm_out::std

A file descriptor for the standard output.

In some ports, this is the terminal device itself; in others, this is a pipe to an output thread. The data format depends on the terminal in principle, but this has not yet been implemented; see bug 96.


The documentation for this struct was generated from the following file: