proc_send
if (proc_send(client_peer, msg, -1, data, size) != 0) {
proc_send(client_peer, msg, -1, NULL, 0);
proc_send(client_peer, MSG_IDENTIFY_LONGFLAGS, -1, &flags, sizeof flags);
proc_send(client_peer, MSG_IDENTIFY_LONGFLAGS, -1, &client_flags,
proc_send(client_peer, MSG_IDENTIFY_TERM, -1, termname,
proc_send(client_peer, MSG_IDENTIFY_FEATURES, -1, &feat, sizeof feat);
proc_send(client_peer, MSG_IDENTIFY_TTYNAME, -1, ttynam,
proc_send(client_peer, MSG_IDENTIFY_CWD, -1, cwd, strlen(cwd) + 1);
proc_send(client_peer, MSG_IDENTIFY_TERMINFO, -1,
proc_send(client_peer, MSG_IDENTIFY_STDIN, fd, NULL, 0);
proc_send(client_peer, MSG_IDENTIFY_STDOUT, fd, NULL, 0);
proc_send(client_peer, MSG_IDENTIFY_CLIENTPID, -1, &pid, sizeof pid);
proc_send(client_peer, MSG_IDENTIFY_ENVIRON, -1, *ss, sslen);
proc_send(client_peer, MSG_IDENTIFY_DONE, -1, NULL, 0);
proc_send(client_peer, MSG_EXITING, -1, NULL, 0);
proc_send(client_peer, MSG_EXITING, -1, NULL, 0);
proc_send(client_peer, MSG_RESIZE, -1, NULL, 0);
proc_send(client_peer, MSG_WAKEUP, -1, NULL, 0);
proc_send(client_peer, MSG_RESIZE, -1, NULL, 0);
proc_send(client_peer, MSG_EXITING, -1, NULL, 0);
proc_send(client_peer, MSG_EXITING, -1, NULL, 0);
proc_send(client_peer, MSG_EXITING, -1, NULL, 0);
proc_send(client_peer, MSG_EXITING, -1, NULL, 0);
proc_send(client_peer, MSG_EXITING, -1, NULL, 0);
proc_send(client_peer, MSG_UNLOCK, -1, NULL, 0);
proc_send(c->peer, MSG_READY, -1, NULL, 0);
proc_send(c->peer, MSG_READY, -1, NULL, 0);
proc_send(c->peer, MSG_WRITE_OPEN, -1, &msg, sizeof msg);
proc_send(c->peer, MSG_WRITE_OPEN, -1, &msg, sizeof msg);
proc_send(c->peer, MSG_WRITE_OPEN, -1, &msg, sizeof msg);
if (proc_send(cf->peer, MSG_WRITE_OPEN, -1, msg, msglen) != 0) {
if (proc_send(cf->peer, MSG_READ_OPEN, -1, msg, msglen) != 0) {
proc_send(cf->peer, MSG_READ_CANCEL, -1, &msg, sizeof msg);
if (proc_send(cf->peer, MSG_WRITE, -1, msg, msglen) != 0)
proc_send(cf->peer, MSG_WRITE_CLOSE, -1, &close, sizeof close);
proc_send(peer, MSG_WRITE_READY, -1, &reply, sizeof reply);
proc_send(cf->peer, MSG_READ_DONE, -1, &msg, sizeof msg);
proc_send(cf->peer, MSG_READ, -1, msg, msglen);
proc_send(peer, MSG_READ_DONE, -1, &reply, sizeof reply);
proc_send(peer, MSG_VERSION, -1, NULL, 0);
proc_send(c->peer, MSG_EXIT, -1, data, size);
proc_send(c->peer, MSG_SHUTDOWN, -1, NULL, 0);
proc_send(c->peer, c->exit_msgtype, -1, name, strlen(name) + 1);
proc_send(c->peer, MSG_EXITED, -1, NULL, 0);
proc_send(c->peer, MSG_SHELL, -1, shell, strlen(shell) + 1);
proc_send(c->peer, MSG_FLAGS, -1, &c->flags, sizeof c->flags);
proc_send(c->peer, MSG_SUSPEND, -1, NULL, 0);
proc_send(c->peer, MSG_EXEC, -1, msg, cmdsize + shellsize);
proc_send(c->peer, MSG_LOCK, -1, cmd, strlen(cmd) + 1);
int proc_send(struct tmuxpeer *, enum msgtype, int, const void *, size_t);