# proc_send

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/proc.c#L164
- **Page:** https://libtmux.org/en/tmux/3.7c/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.7c/reference/c-function-client-c-client_dispatch_attached/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L756)
- [`client_dispatch_wait`](/en/tmux/3.7c/reference/c-function-client-c-client_dispatch_wait/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L664)
- [`client_main`](/en/tmux/3.7c/reference/c-function-client_main/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L391)
- [`client_send_identify`](/en/tmux/3.7c/reference/c-function-client-c-client_send_identify/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L460)
- [`client_signal`](/en/tmux/3.7c/reference/c-function-client-c-client_signal/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L547)
- [`cmd_attach_session`](/en/tmux/3.7c/reference/c-function-cmd_attach_session/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-attach-session.c#L165)
- [`cmd_new_session_exec`](/en/tmux/3.7c/reference/c-function-cmd-new-session-c-cmd_new_session_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-new-session.c#L339)
- [`file_cancel`](/en/tmux/3.7c/reference/c-function-file_cancel/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L458)
- [`file_error`](/en/tmux/3.7c/reference/c-function-file_error/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L281)
- [`file_print_buffer`](/en/tmux/3.7c/reference/c-function-file_print_buffer/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L251)
- [`file_push`](/en/tmux/3.7c/reference/c-function-file_push/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L491)
- [`file_read`](/en/tmux/3.7c/reference/c-function-file_read/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L430)
- [`file_read_callback`](/en/tmux/3.7c/reference/c-function-file-c-file_read_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L721)
- [`file_read_error_callback`](/en/tmux/3.7c/reference/c-function-file-c-file_read_error_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L688)
- [`file_read_open`](/en/tmux/3.7c/reference/c-function-file_read_open/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L789)
- [`file_vprint`](/en/tmux/3.7c/reference/c-function-file_vprint/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L224)
- [`file_write`](/en/tmux/3.7c/reference/c-function-file_write/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L352)
- [`file_write_open`](/en/tmux/3.7c/reference/c-function-file_write_open/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/file.c#L628)
- [`peer_check_version`](/en/tmux/3.7c/reference/c-function-proc-c-peer_check_version/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/proc.c#L140)
- [`server_client_check_exit`](/en/tmux/3.7c/reference/c-function-server-client-c-server_client_check_exit/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L1943)
- [`server_client_dispatch`](/en/tmux/3.7c/reference/c-function-server-client-c-server_client_dispatch/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2266)
- [`server_client_dispatch_shell`](/en/tmux/3.7c/reference/c-function-server-client-c-server_client_dispatch_shell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2595)
- [`server_client_exec`](/en/tmux/3.7c/reference/c-function-server_client_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L597)
- [`server_client_set_flags`](/en/tmux/3.7c/reference/c-function-server_client_set_flags/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2679)
- [`server_client_suspend`](/en/tmux/3.7c/reference/c-function-server_client_suspend/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L553)
- [`server_lock_client`](/en/tmux/3.7c/reference/c-function-server_lock_client/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-fn.c#L179)

## Calls

- [`log_debug`](/en/tmux/3.7c/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/proc.c#L173)
- [`proc_update_event`](/en/tmux/3.7c/reference/c-function-proc-c-proc_update_event/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/proc.c#L178)

## Referenced declarations

- [`tmuxpeer.flags`](/en/tmux/3.7c/reference/c-struct-tmuxpeer-flags/) (attribute)
- [`tmuxpeer.ibuf`](/en/tmux/3.7c/reference/c-struct-tmuxpeer-ibuf/) (attribute)
- [`msgtype`](/en/tmux/3.7c/reference/c-enum-msgtype/) (enum)
- [`PEER_BAD`](/en/tmux/3.7c/reference/c-define-proc-c-peer_bad/) (constant)
- [`PROTOCOL_VERSION`](/en/tmux/3.7c/reference/c-define-tmux-protocol-h-protocol_version/) (constant)
- [`tmuxpeer`](/en/tmux/3.7c/reference/c-struct-tmuxpeer/) (struct)
