# proc_event_cb

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/proc.c#L78
- **Page:** https://libtmux.org/en/tmux/latest/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/latest/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/proc.c#L96)
- [`peer_check_version`](/en/tmux/latest/reference/c-function-proc-c-peer_check_version/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/proc.c#L98)
- [`proc_update_event`](/en/tmux/latest/reference/c-function-proc-c-proc_update_event/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/proc.c#L120)

## Referenced by

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

## Referenced declarations

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