# server_client_set_flags

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

```c
void server_client_set_flags(struct client *c, const char *flags)
```

## Parameters

- `c` (`struct client *`)
- `flags` (`const char *`)

## Called by

- [`cmd_attach_session`](/en/tmux/3.7c/reference/c-function-cmd_attach_session/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-attach-session.c#L109)
- [`cmd_new_session_exec`](/en/tmux/3.7c/reference/c-function-cmd-new-session-c-cmd_new_session_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-new-session.c#L336)
- [`cmd_refresh_client_exec`](/en/tmux/3.7c/reference/c-function-cmd-refresh-client-c-cmd_refresh_client_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-refresh-client.c#L262)

## Calls

- [`control_reset_offsets`](/en/tmux/3.7c/reference/c-function-control_reset_offsets/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2676)
- [`log_debug`](/en/tmux/3.7c/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2668)
- [`proc_send`](/en/tmux/3.7c/reference/c-function-proc_send/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2679)
- [`server_client_control_flags`](/en/tmux/3.7c/reference/c-function-server-client-c-server_client_control_flags/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2654)
- [`xstrdup`](/en/tmux/3.7c/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2647)

## Referenced by

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

## Referenced declarations

- [`client`](/en/tmux/3.7c/reference/c-struct-client/) (struct)
- [`CLIENT_ACTIVEPANE`](/en/tmux/3.7c/reference/c-define-tmux-h-client_activepane/) (constant)
- [`CLIENT_CONTROL`](/en/tmux/3.7c/reference/c-define-tmux-h-client_control/) (constant)
- [`CLIENT_CONTROL_NOOUTPUT`](/en/tmux/3.7c/reference/c-define-tmux-h-client_control_nooutput/) (constant)
- [`CLIENT_IGNORESIZE`](/en/tmux/3.7c/reference/c-define-tmux-h-client_ignoresize/) (constant)
- [`CLIENT_NO_DETACH_ON_DESTROY`](/en/tmux/3.7c/reference/c-define-tmux-h-client_no_detach_on_destroy/) (constant)
- [`CLIENT_READONLY`](/en/tmux/3.7c/reference/c-define-tmux-h-client_readonly/) (constant)
- [`client.flags`](/en/tmux/3.7c/reference/c-struct-client-flags/) (attribute)
- [`session.flags`](/en/tmux/3.7c/reference/c-struct-session-flags/) (attribute)
- [`MSG_FLAGS`](/en/tmux/3.7c/reference/c-enum-msgtype-msg_flags/) (constant)
- [`client.name`](/en/tmux/3.7c/reference/c-struct-client-name/) (attribute)
- [`client.peer`](/en/tmux/3.7c/reference/c-struct-client-peer/) (attribute)
