# proc_send

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

```c
int proc_send(struct tmuxpeer *peer, enum msgtype type, int fd, const void *buf, size_t len)
```

## Parameters

- `peer` (`struct tmuxpeer *`)
- `type` (`enum msgtype`)
- `fd` (`int`)
- `buf` (`const void *`)
- `len` (`size_t`)

## Called by

- [`client_dispatch_attached`](/en/tmux/3.2a/reference/c-function-client-c-client_dispatch_attached/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/client.c#L743)
- [`client_dispatch_wait`](/en/tmux/3.2a/reference/c-function-client-c-client_dispatch_wait/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/client.c#L654)
- [`client_main`](/en/tmux/3.2a/reference/c-function-client_main/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/client.c#L383)
- [`client_send_identify`](/en/tmux/3.2a/reference/c-function-client-c-client_send_identify/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/client.c#L451)
- [`client_signal`](/en/tmux/3.2a/reference/c-function-client-c-client_signal/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/client.c#L537)
- [`cmd_attach_session`](/en/tmux/3.2a/reference/c-function-cmd_attach_session/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-attach-session.c#L171)
- [`cmd_new_session_exec`](/en/tmux/3.2a/reference/c-function-cmd-new-session-c-cmd_new_session_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-new-session.c#L317)
- [`file_error`](/en/tmux/3.2a/reference/c-function-file_error/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L271)
- [`file_print_buffer`](/en/tmux/3.2a/reference/c-function-file_print_buffer/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L241)
- [`file_push`](/en/tmux/3.2a/reference/c-function-file_push/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L459)
- [`file_read`](/en/tmux/3.2a/reference/c-function-file_read/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L417)
- [`file_read_callback`](/en/tmux/3.2a/reference/c-function-file-c-file_read_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L687)
- [`file_read_error_callback`](/en/tmux/3.2a/reference/c-function-file-c-file_read_error_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L654)
- [`file_read_open`](/en/tmux/3.2a/reference/c-function-file_read_open/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L753)
- [`file_vprint`](/en/tmux/3.2a/reference/c-function-file_vprint/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L214)
- [`file_write`](/en/tmux/3.2a/reference/c-function-file_write/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L342)
- [`file_write_open`](/en/tmux/3.2a/reference/c-function-file_write_open/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/file.c#L594)
- [`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#L138)
- [`server_client_check_exit`](/en/tmux/3.2a/reference/c-function-server-client-c-server_client_check_exit/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L1821)
- [`server_client_dispatch`](/en/tmux/3.2a/reference/c-function-server-client-c-server_client_dispatch/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L2070)
- [`server_client_dispatch_shell`](/en/tmux/3.2a/reference/c-function-server-client-c-server_client_dispatch_shell/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L2341)
- [`server_client_exec`](/en/tmux/3.2a/reference/c-function-server_client_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L470)
- [`server_client_set_flags`](/en/tmux/3.2a/reference/c-function-server_client_set_flags/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L2420)
- [`server_client_suspend`](/en/tmux/3.2a/reference/c-function-server_client_suspend/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L426)
- [`server_lock_client`](/en/tmux/3.2a/reference/c-function-server_lock_client/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-fn.c#L175)

## Calls

- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/proc.c#L171)
- [`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#L176)

## Referenced declarations

- [`tmuxpeer.flags`](/en/tmux/3.2a/reference/c-struct-tmuxpeer-flags/) (attribute)
- [`tmuxpeer.ibuf`](/en/tmux/3.2a/reference/c-struct-tmuxpeer-ibuf/) (attribute)
- [`msgtype`](/en/tmux/3.2a/reference/c-enum-msgtype/) (enum)
- [`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)
