# client_connect

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

```c
static int client_connect(struct event_base *, const char *, uint64_t)
```

## Parameters

- `base` (`struct event_base *`)
- `path` (`const char *`)
- `flags` (`uint64_t`)

## Called by

- [`client_main`](/en/tmux/latest/reference/c-function-client_main/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L290)

## Calls

- [`log_debug`](/en/tmux/latest/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L119)
- [`server_start`](/en/tmux/latest/reference/c-function-server_start/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L164)
- [`setblocking`](/en/tmux/latest/reference/c-function-setblocking/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L171)
- [`xasprintf`](/en/tmux/latest/reference/c-function-xasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L137)

## Other function references

- [`client_get_lock`](/en/tmux/latest/reference/c-function-client-c-client_get_lock/) (function)

## Referenced declarations

- [`CLIENT_NOSTARTSERVER`](/en/tmux/latest/reference/c-define-tmux-h-client_nostartserver/) (constant)
- [`client_proc`](/en/tmux/latest/reference/c-variable-client-c-client_proc/) (attribute)
- [`CLIENT_STARTSERVER`](/en/tmux/latest/reference/c-define-tmux-h-client_startserver/) (constant)
