<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rtmux.git/client-fn.c, branch master</title>
<subtitle>Tmux with Rahm's extra hacks.</subtitle>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/'/>
<entry>
<title>Sync OpenBSD patchset 433:</title>
<updated>2009-10-23T17:32:26+00:00</updated>
<author>
<name>Tiago Cunha</name>
<email>tcunha@gmx.com</email>
</author>
<published>2009-10-23T17:32:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=84392ffc0d9aaa81ef213e2c32af5f25d728043e'/>
<id>84392ffc0d9aaa81ef213e2c32af5f25d728043e</id>
<content type='text'>
Client tidying: get rid of client_ctx struct in favour of two variables in
client.c, and move the functions in client-fn.c into other files.

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Client tidying: get rid of client_ctx struct in favour of two variables in
client.c, and move the functions in client-fn.c into other files.

</pre>
</div>
</content>
</entry>
<entry>
<title>Sync OpenBSD patchset 243:</title>
<updated>2009-08-14T21:04:04+00:00</updated>
<author>
<name>Tiago Cunha</name>
<email>tcunha@gmx.com</email>
</author>
<published>2009-08-14T21:04:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=a9b6bfdddd570753e52dca73169f70864502c38c'/>
<id>a9b6bfdddd570753e52dca73169f70864502c38c</id>
<content type='text'>
Switch tmux to use imsg. This is the last major change to make the
client-server protocol more resilient and make the protocol versioning work
properly. In future, the only things requiring a protocol version bump will be
changes in the message structs, and (when both client and server have this
change) mixing different versions should nicely report an error message.

As a side effect this also makes the code tidier, fixes a problem with the way
errors reported during server startup were handled, and supports fd passing
(which will be used in future).

Looked over by eric@, thanks.

Please note that mixing a client with this change with an older server or vice
versa may cause tmux to crash or hang - tmux should be completely exited before
upgrading.

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Switch tmux to use imsg. This is the last major change to make the
client-server protocol more resilient and make the protocol versioning work
properly. In future, the only things requiring a protocol version bump will be
changes in the message structs, and (when both client and server have this
change) mixing different versions should nicely report an error message.

As a side effect this also makes the code tidier, fixes a problem with the way
errors reported during server startup were handled, and supports fd passing
(which will be used in future).

Looked over by eric@, thanks.

Please note that mixing a client with this change with an older server or vice
versa may cause tmux to crash or hang - tmux should be completely exited before
upgrading.

</pre>
</div>
</content>
</entry>
<entry>
<title>Sync OpenBSD patchset 202:</title>
<updated>2009-07-30T20:57:39+00:00</updated>
<author>
<name>Tiago Cunha</name>
<email>tcunha@gmx.com</email>
</author>
<published>2009-07-30T20:57:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=67266dc25c4973be37ff11d277aa598456a0f38d'/>
<id>67266dc25c4973be37ff11d277aa598456a0f38d</id>
<content type='text'>
There aren't many client message types or code to handle them so get rid of
the lookup table and use a switch, merge the tiny handler functions into it,
and move the whole lot to client.c.

Also change client_msg_dispatch to consume as many messages as possible and
move the call to it to the right place so it checks for signals afterwards.

Prompted by suggestions from eric@.

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There aren't many client message types or code to handle them so get rid of
the lookup table and use a switch, merge the tiny handler functions into it,
and move the whole lot to client.c.

Also change client_msg_dispatch to consume as many messages as possible and
move the call to it to the right place so it checks for signals afterwards.

Prompted by suggestions from eric@.

</pre>
</div>
</content>
</entry>
<entry>
<title>Sync OpenBSD patchset 196:</title>
<updated>2009-07-30T20:21:55+00:00</updated>
<author>
<name>Tiago Cunha</name>
<email>tcunha@gmx.com</email>
</author>
<published>2009-07-30T20:21:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=6fbfcfc0d78c9b00181bb2465ede73b18ac92cef'/>
<id>6fbfcfc0d78c9b00181bb2465ede73b18ac92cef</id>
<content type='text'>
Rename struct hdrtype to msgtype which is a better name and can be used even
when struct hdr disappears.

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Rename struct hdrtype to msgtype which is a better name and can be used even
when struct hdr disappears.

</pre>
</div>
</content>
</entry>
<entry>
<title>Sync OpenBSD patchset 181:</title>
<updated>2009-07-28T22:12:16+00:00</updated>
<author>
<name>Tiago Cunha</name>
<email>tcunha@gmx.com</email>
</author>
<published>2009-07-28T22:12:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=d637cb33da212a74636984be0ce9dfface6be6b4'/>
<id>d637cb33da212a74636984be0ce9dfface6be6b4</id>
<content type='text'>
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.

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.

</pre>
</div>
</content>
</entry>
<entry>
<title>Put socket path in $TMUX.</title>
<updated>2009-03-04T17:24:07+00:00</updated>
<author>
<name>Nicholas Marriott</name>
<email>nicholas.marriott@gmail.com</email>
</author>
<published>2009-03-04T17:24:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=65b9aeb33707e9663ac594b872ab33b9a78d7daa'/>
<id>65b9aeb33707e9663ac594b872ab33b9a78d7daa</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Change server-info format.</title>
<updated>2009-01-10T14:43:43+00:00</updated>
<author>
<name>Nicholas Marriott</name>
<email>nicholas.marriott@gmail.com</email>
</author>
<published>2009-01-10T14:43:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=fd05d07c2b7bafcfb371f96baae96dc636a5aabf'/>
<id>fd05d07c2b7bafcfb371f96baae96dc636a5aabf</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>long for pid.</title>
<updated>2008-07-01T20:35:16+00:00</updated>
<author>
<name>Nicholas Marriott</name>
<email>nicholas.marriott@gmail.com</email>
</author>
<published>2008-07-01T20:35:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=e5cf8594e813af20067355a4f63c6d3511b3b5fd'/>
<id>e5cf8594e813af20067355a4f63c6d3511b3b5fd</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Lift last MAXNAMELEN limit on -s argument.</title>
<updated>2007-10-23T10:48:23+00:00</updated>
<author>
<name>Nicholas Marriott</name>
<email>nicholas.marriott@gmail.com</email>
</author>
<published>2007-10-23T10:48:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=688a487570e39312c39d7a46e0a7ed6e61392ee8'/>
<id>688a487570e39312c39d7a46e0a7ed6e61392ee8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>String/number arguments..</title>
<updated>2007-10-03T12:34:16+00:00</updated>
<author>
<name>Nicholas Marriott</name>
<email>nicholas.marriott@gmail.com</email>
</author>
<published>2007-10-03T12:34:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=fe06744d66e66b0b8e3839dbca5791001be5e58d'/>
<id>fe06744d66e66b0b8e3839dbca5791001be5e58d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
