# server_client_dispatch

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

```c
static void server_client_dispatch(struct imsg *, void *)
```

## Parameters

- `imsg` (`struct imsg *`)
- `arg` (`void *`)

## Calls

- [`fatal`](/en/tmux/3.7c/reference/c-function-fatal/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2282)
- [`file_read_data`](/en/tmux/3.7c/reference/c-function-file_read_data/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2302)
- [`file_read_done`](/en/tmux/3.7c/reference/c-function-file_read_done/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2306)
- [`file_write_ready`](/en/tmux/3.7c/reference/c-function-file_write_ready/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2298)
- [`log_debug`](/en/tmux/3.7c/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2314)
- [`notify_client`](/en/tmux/3.7c/reference/c-function-notify_client/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2258)
- [`proc_kill_peer`](/en/tmux/3.7c/reference/c-function-proc_kill_peer/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2315)
- [`proc_send`](/en/tmux/3.7c/reference/c-function-proc_send/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2266)
- [`recalculate_sizes`](/en/tmux/3.7c/reference/c-function-recalculate_sizes/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2251)
- [`server_client_clear_overlay`](/en/tmux/3.7c/reference/c-function-server_client_clear_overlay/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2253)
- [`server_client_dispatch_command`](/en/tmux/3.7c/reference/c-function-server-client-c-server_client_dispatch_command/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2239)
- [`server_client_dispatch_identify`](/en/tmux/3.7c/reference/c-function-server-client-c-server_client_dispatch_identify/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2235)
- [`server_client_dispatch_shell`](/en/tmux/3.7c/reference/c-function-server-client-c-server_client_dispatch_shell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2294)
- [`server_client_lost`](/en/tmux/3.7c/reference/c-function-server_client_lost/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2216)
- [`server_client_set_session`](/en/tmux/3.7c/reference/c-function-server_client_set_session/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2263)
- [`server_client_update_latest`](/en/tmux/3.7c/reference/c-function-server-client-c-server_client_update_latest/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2248)
- [`server_redraw_client`](/en/tmux/3.7c/reference/c-function-server_redraw_client/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2256)
- [`session_update_activity`](/en/tmux/3.7c/reference/c-function-session_update_activity/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2289)
- [`tty_close`](/en/tmux/3.7c/reference/c-function-tty_close/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2265)
- [`tty_repeat_requests`](/en/tmux/3.7c/reference/c-function-tty_repeat_requests/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2250)
- [`tty_resize`](/en/tmux/3.7c/reference/c-function-tty_resize/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2249)
- [`tty_start_tty`](/en/tmux/3.7c/reference/c-function-tty_start_tty/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2284)

## Referenced by

- [`server_client_create`](/en/tmux/3.7c/reference/c-function-server_client_create/) (function)

## Referenced declarations

- [`client.activity_time`](/en/tmux/3.7c/reference/c-struct-client-activity_time/) (attribute)
- [`CLIENT_CONTROL`](/en/tmux/3.7c/reference/c-define-tmux-h-client_control/) (constant)
- [`CLIENT_DEAD`](/en/tmux/3.7c/reference/c-define-tmux-h-client_dead/) (constant)
- [`CLIENT_SUSPENDED`](/en/tmux/3.7c/reference/c-define-tmux-h-client_suspended/) (constant)
- [`client.fd`](/en/tmux/3.7c/reference/c-struct-client-fd/) (attribute)
- [`client.files`](/en/tmux/3.7c/reference/c-struct-client-files/) (attribute)
- [`client.flags`](/en/tmux/3.7c/reference/c-struct-client-flags/) (attribute)
- [`MSG_COMMAND`](/en/tmux/3.7c/reference/c-enum-msgtype-msg_command/) (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_IDENTIFY_CLIENTPID`](/en/tmux/3.7c/reference/c-enum-msgtype-msg_identify_clientpid/) (constant)
- [`MSG_IDENTIFY_CWD`](/en/tmux/3.7c/reference/c-enum-msgtype-msg_identify_cwd/) (constant)
- [`MSG_IDENTIFY_DONE`](/en/tmux/3.7c/reference/c-enum-msgtype-msg_identify_done/) (constant)
- [`MSG_IDENTIFY_ENVIRON`](/en/tmux/3.7c/reference/c-enum-msgtype-msg_identify_environ/) (constant)
- [`MSG_IDENTIFY_FEATURES`](/en/tmux/3.7c/reference/c-enum-msgtype-msg_identify_features/) (constant)
- [`MSG_IDENTIFY_FLAGS`](/en/tmux/3.7c/reference/c-enum-msgtype-msg_identify_flags/) (constant)
- [`MSG_IDENTIFY_LONGFLAGS`](/en/tmux/3.7c/reference/c-enum-msgtype-msg_identify_longflags/) (constant)
- [`MSG_IDENTIFY_STDIN`](/en/tmux/3.7c/reference/c-enum-msgtype-msg_identify_stdin/) (constant)
- [`MSG_IDENTIFY_STDOUT`](/en/tmux/3.7c/reference/c-enum-msgtype-msg_identify_stdout/) (constant)
- [`MSG_IDENTIFY_TERM`](/en/tmux/3.7c/reference/c-enum-msgtype-msg_identify_term/) (constant)
- [`MSG_IDENTIFY_TERMINFO`](/en/tmux/3.7c/reference/c-enum-msgtype-msg_identify_terminfo/) (constant)
- [`MSG_IDENTIFY_TTYNAME`](/en/tmux/3.7c/reference/c-enum-msgtype-msg_identify_ttyname/) (constant)
- [`MSG_READ`](/en/tmux/3.7c/reference/c-enum-msgtype-msg_read/) (constant)
- [`MSG_READ_DONE`](/en/tmux/3.7c/reference/c-enum-msgtype-msg_read_done/) (constant)
- [`MSG_RESIZE`](/en/tmux/3.7c/reference/c-enum-msgtype-msg_resize/) (constant)
- [`MSG_SHELL`](/en/tmux/3.7c/reference/c-enum-msgtype-msg_shell/) (constant)
- [`MSG_UNLOCK`](/en/tmux/3.7c/reference/c-enum-msgtype-msg_unlock/) (constant)
- [`MSG_WAKEUP`](/en/tmux/3.7c/reference/c-enum-msgtype-msg_wakeup/) (constant)
- [`MSG_WRITE_READY`](/en/tmux/3.7c/reference/c-enum-msgtype-msg_write_ready/) (constant)
- [`client.overlay_data`](/en/tmux/3.7c/reference/c-struct-client-overlay_data/) (attribute)
- [`client.overlay_resize`](/en/tmux/3.7c/reference/c-struct-client-overlay_resize/) (attribute)
- [`client.peer`](/en/tmux/3.7c/reference/c-struct-client-peer/) (attribute)
- [`client.session`](/en/tmux/3.7c/reference/c-struct-client-session/) (attribute)
- [`client.tty`](/en/tmux/3.7c/reference/c-struct-client-tty/) (attribute)
