# proc_event_cb

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

```c
static void proc_event_cb(int fd, short events, void *arg)
```

## Parameters

- `fd` (`int`)
- `events` (`short`)
- `arg` (`void *`)

## Calls

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

## Referenced by

- [`proc_add_peer`](/en/tmux/3.2a/reference/c-function-proc_add_peer/) (function)
- [`proc_update_event`](/en/tmux/3.2a/reference/c-function-proc-c-proc_update_event/) (function)

## Referenced declarations

- [`__unused`](/en/tmux/3.2a/reference/c-define-compat-h-__unused/) (constant)
- [`tmuxpeer.arg`](/en/tmux/3.2a/reference/c-struct-tmuxpeer-arg/) (attribute)
- [`tmuxpeer.dispatchcb`](/en/tmux/3.2a/reference/c-struct-tmuxpeer-dispatchcb/) (attribute)
- [`tmuxpeer.flags`](/en/tmux/3.2a/reference/c-struct-tmuxpeer-flags/) (attribute)
- [`tmuxpeer.ibuf`](/en/tmux/3.2a/reference/c-struct-tmuxpeer-ibuf/) (attribute)
- [`PEER_BAD`](/en/tmux/3.2a/reference/c-define-proc-c-peer_bad/) (constant)
