# peer_check_version

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

```c
static int peer_check_version(struct tmuxpeer *, struct imsg *)
```

## Parameters

- `peer` (`struct tmuxpeer *`)
- `imsg` (`struct imsg *`)

## Called by

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

## Calls

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

## Referenced declarations

- [`tmuxpeer.flags`](/en/tmux/3.2a/reference/c-struct-tmuxpeer-flags/) (attribute)
- [`MSG_VERSION`](/en/tmux/3.2a/reference/c-enum-msgtype-msg_version/) (constant)
- [`PEER_BAD`](/en/tmux/3.2a/reference/c-define-proc-c-peer_bad/) (constant)
- [`PROTOCOL_VERSION`](/en/tmux/3.2a/reference/c-define-tmux-h-protocol_version/) (constant)
- [`tmuxpeer`](/en/tmux/3.2a/reference/c-struct-tmuxpeer/) (struct)
