# control_write_data

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L643
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-control-c-control_write_data/

```c
static void control_write_data(struct client *c, struct evbuffer *message)
```

## Parameters

- `c` (`struct client *`)
- `message` (`struct evbuffer *`)

## Called by

- [`control_write_pending`](/en/tmux/3.2a/reference/c-function-control-c-control_write_pending/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L708)

## Calls

- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L647)

## Referenced declarations

- [`client`](/en/tmux/3.2a/reference/c-struct-client/) (struct)
- [`client.control_state`](/en/tmux/3.2a/reference/c-struct-client-control_state/) (attribute)
- [`client.name`](/en/tmux/3.2a/reference/c-struct-client-name/) (attribute)
- [`control_state.write_event`](/en/tmux/3.2a/reference/c-struct-control_state-write_event/) (attribute)
