# client_dispatch_attached

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L727
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-client-c-client_dispatch_attached/

```c
static void client_dispatch_attached(struct imsg *)
```

## Parameters

- `imsg` (`struct imsg *`)

## Called by

- [`client_dispatch`](/en/tmux/3.7c/reference/c-function-client-c-client_dispatch/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L596)

## Calls

- [`client_dispatch_exit_message`](/en/tmux/3.7c/reference/c-function-client-c-client_dispatch_exit_message/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L769)
- [`fatal`](/en/tmux/3.7c/reference/c-function-fatal/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L797)
- [`fatalx`](/en/tmux/3.7c/reference/c-function-fatalx/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L739)
- [`log_debug`](/en/tmux/3.7c/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L742)
- [`proc_exit`](/en/tmux/3.7c/reference/c-function-proc_exit/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L778)
- [`proc_send`](/en/tmux/3.7c/reference/c-function-proc_send/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L756)
- [`xstrdup`](/en/tmux/3.7c/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L750)

## Referenced declarations

- [`client_execcmd`](/en/tmux/3.7c/reference/c-variable-client-c-client_execcmd/) (attribute)
- [`client_execshell`](/en/tmux/3.7c/reference/c-variable-client-c-client_execshell/) (attribute)
- [`CLIENT_EXIT_DETACHED`](/en/tmux/3.7c/reference/c-enum-client-c-312251056026170022174140061020115020145225126374-client_exit_detached/) (constant)
- [`CLIENT_EXIT_DETACHED_HUP`](/en/tmux/3.7c/reference/c-enum-client-c-312251056026170022174140061020115020145225126374-client_exit_detached_hup/) (constant)
- [`CLIENT_EXIT_EXITED`](/en/tmux/3.7c/reference/c-enum-client-c-312251056026170022174140061020115020145225126374-client_exit_exited/) (constant)
- [`CLIENT_EXIT_NONE`](/en/tmux/3.7c/reference/c-enum-client-c-312251056026170022174140061020115020145225126374-client_exit_none/) (constant)
- [`CLIENT_EXIT_SERVER_EXITED`](/en/tmux/3.7c/reference/c-enum-client-c-312251056026170022174140061020115020145225126374-client_exit_server_exited/) (constant)
- [`client_exitreason`](/en/tmux/3.7c/reference/c-variable-client-c-client_exitreason/) (attribute)
- [`client_exitsession`](/en/tmux/3.7c/reference/c-variable-client-c-client_exitsession/) (attribute)
- [`client_exittype`](/en/tmux/3.7c/reference/c-variable-client-c-client_exittype/) (attribute)
- [`client_exitval`](/en/tmux/3.7c/reference/c-variable-client-c-client_exitval/) (attribute)
- [`client_flags`](/en/tmux/3.7c/reference/c-variable-client-c-client_flags/) (attribute)
- [`client_peer`](/en/tmux/3.7c/reference/c-variable-client-c-client_peer/) (attribute)
- [`client_proc`](/en/tmux/3.7c/reference/c-variable-client-c-client_proc/) (attribute)
- [`client_suspended`](/en/tmux/3.7c/reference/c-variable-client-c-client_suspended/) (attribute)
- [`MSG_DETACH`](/en/tmux/3.7c/reference/c-enum-msgtype-msg_detach/) (constant)
- [`MSG_DETACHKILL`](/en/tmux/3.7c/reference/c-enum-msgtype-msg_detachkill/) (constant)
- [`MSG_EXEC`](/en/tmux/3.7c/reference/c-enum-msgtype-msg_exec/) (constant)
- [`MSG_EXIT`](/en/tmux/3.7c/reference/c-enum-msgtype-msg_exit/) (constant)
- [`MSG_EXITED`](/en/tmux/3.7c/reference/c-enum-msgtype-msg_exited/) (constant)
- [`MSG_EXITING`](/en/tmux/3.7c/reference/c-enum-msgtype-msg_exiting/) (constant)
- [`MSG_FLAGS`](/en/tmux/3.7c/reference/c-enum-msgtype-msg_flags/) (constant)
- [`MSG_LOCK`](/en/tmux/3.7c/reference/c-enum-msgtype-msg_lock/) (constant)
- [`MSG_SHUTDOWN`](/en/tmux/3.7c/reference/c-enum-msgtype-msg_shutdown/) (constant)
- [`MSG_SUSPEND`](/en/tmux/3.7c/reference/c-enum-msgtype-msg_suspend/) (constant)
- [`MSG_UNLOCK`](/en/tmux/3.7c/reference/c-enum-msgtype-msg_unlock/) (constant)
