#include <env_universal_common.h>
Data Fields | |
| int | fd |
| The file descriptor this socket lives on. | |
| dyn_queue_t | unsent |
| Queue of onsent messages. | |
| int | killme |
| Set to one when this connection should be killed. | |
| buffer_t | input |
| The input string. | |
| char | buffer [ENV_UNIVERSAL_BUFFER_SIZE] |
| The read buffer. | |
| int | buffer_consumed |
| Number of bytes that have already been consumed. | |
| int | buffer_used |
| Number of bytes that have been read into the buffer. | |
| struct connection * | next |
| Link to the next connection. | |
The input string.
Input from the socket goes here. When a newline is encountered, the buffer is parsed and cleared.
Referenced by connection_destroy(), connection_init(), and read_message().
1.5.6