Make all messages sent between the client and server fixed size.

This is the first of two changes to make the protocol more resilient and less
sensitive to other changes in the code, particularly with commands. The client
now packs argv into a buffer and sends it to the server for parsing, rather
than doing it itself and sending the parsed command data.

As a side-effect this also removes a lot of now-unused command marshalling
code.

Mixing a server without this change and a client with or vice versa will cause
tmux to hang or crash, please ensure that tmux is entirely killed before
upgrading.
82 files changed
tree: 7b997970d436b81cd73370dd75ba0096756a903c
  1. Makefile
  2. array.h
  3. attributes.c
  4. buffer-poll.c
  5. buffer.c
  6. cfg.c
  7. client-fn.c
  8. client-msg.c
  9. client.c
  10. clock.c
  11. cmd-attach-session.c
  12. cmd-bind-key.c
  13. cmd-break-pane.c
  14. cmd-choose-session.c
  15. cmd-choose-window.c
  16. cmd-clear-history.c
  17. cmd-clock-mode.c
  18. cmd-command-prompt.c
  19. cmd-confirm-before.c
  20. cmd-copy-buffer.c
  21. cmd-copy-mode.c
  22. cmd-delete-buffer.c
  23. cmd-detach-client.c
  24. cmd-display-message.c
  25. cmd-down-pane.c
  26. cmd-find-window.c
  27. cmd-generic.c
  28. cmd-has-session.c
  29. cmd-if-shell.c
  30. cmd-kill-pane.c
  31. cmd-kill-server.c
  32. cmd-kill-session.c
  33. cmd-kill-window.c
  34. cmd-last-window.c
  35. cmd-link-window.c
  36. cmd-list-buffers.c
  37. cmd-list-clients.c
  38. cmd-list-commands.c
  39. cmd-list-keys.c
  40. cmd-list-sessions.c
  41. cmd-list-windows.c
  42. cmd-list.c
  43. cmd-load-buffer.c
  44. cmd-lock-server.c
  45. cmd-move-window.c
  46. cmd-new-session.c
  47. cmd-new-window.c
  48. cmd-next-layout.c
  49. cmd-next-window.c
  50. cmd-paste-buffer.c
  51. cmd-previous-layout.c
  52. cmd-previous-window.c
  53. cmd-refresh-client.c
  54. cmd-rename-session.c
  55. cmd-rename-window.c
  56. cmd-resize-pane.c
  57. cmd-respawn-window.c
  58. cmd-rotate-window.c
  59. cmd-save-buffer.c
  60. cmd-scroll-mode.c
  61. cmd-select-layout.c
  62. cmd-select-pane.c
  63. cmd-select-prompt.c
  64. cmd-select-window.c
  65. cmd-send-keys.c
  66. cmd-send-prefix.c
  67. cmd-server-info.c
  68. cmd-set-buffer.c
  69. cmd-set-option.c
  70. cmd-set-password.c
  71. cmd-set-window-option.c
  72. cmd-show-buffer.c
  73. cmd-show-options.c
  74. cmd-show-window-options.c
  75. cmd-source-file.c
  76. cmd-split-window.c
  77. cmd-start-server.c
  78. cmd-string.c
  79. cmd-suspend-client.c
  80. cmd-swap-pane.c
  81. cmd-swap-window.c
  82. cmd-switch-client.c
  83. cmd-unbind-key.c
  84. cmd-unlink-window.c
  85. cmd-up-pane.c
  86. cmd.c
  87. colour.c
  88. grid-view.c
  89. grid.c
  90. input-keys.c
  91. input.c
  92. key-bindings.c
  93. key-string.c
  94. layout-set.c
  95. layout.c
  96. log.c
  97. mode-key.c
  98. names.c
  99. options-cmd.c
  100. options.c
  101. paste.c
  102. procname.c
  103. resize.c
  104. screen-redraw.c
  105. screen-write.c
  106. screen.c
  107. server-fn.c
  108. server-msg.c
  109. server.c
  110. session.c
  111. status.c
  112. tmux.1
  113. tmux.c
  114. tmux.h
  115. tty-keys.c
  116. tty-term.c
  117. tty.c
  118. utf8.c
  119. window-choose.c
  120. window-clock.c
  121. window-copy.c
  122. window-more.c
  123. window-scroll.c
  124. window.c
  125. xmalloc.c