<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rtmux.git/client-msg.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 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>Sync OpenBSD patchset 172:</title>
<updated>2009-07-23T23:42:59+00:00</updated>
<author>
<name>Tiago Cunha</name>
<email>tcunha@gmx.com</email>
</author>
<published>2009-07-23T23:42:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=1870b96578cdc7d6605ce1d08bf2023f54b22935'/>
<id>1870b96578cdc7d6605ce1d08bf2023f54b22935</id>
<content type='text'>
Tidy client message return slightly: convert flags into an enum, and merge
error string into struct client_ctx as well.

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Tidy client message return slightly: convert flags into an enum, and merge
error string into struct client_ctx as well.

</pre>
</div>
</content>
</entry>
<entry>
<title>Sync OpenBSD patchset 154:</title>
<updated>2009-07-22T17:38:11+00:00</updated>
<author>
<name>Tiago Cunha</name>
<email>tcunha@gmx.com</email>
</author>
<published>2009-07-22T17:38:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=0237e1dafdfd94f8526a73ad02f5ed88e24c4c18'/>
<id>0237e1dafdfd94f8526a73ad02f5ed88e24c4c18</id>
<content type='text'>
Nix a few unused attributes on arguments which are no longer unused.

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Nix a few unused attributes on arguments which are no longer unused.

</pre>
</div>
</content>
</entry>
<entry>
<title>Sync to OpenBSD: fixes from ray@.</title>
<updated>2009-06-25T15:25:45+00:00</updated>
<author>
<name>Nicholas Marriott</name>
<email>nicholas.marriott@gmail.com</email>
</author>
<published>2009-06-25T15:25:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=32398b98a8735dfc7a53b1ab2f748c15f0e69881'/>
<id>32398b98a8735dfc7a53b1ab2f748c15f0e69881</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Handle SIGTERM (and kill-server which uses it), a bit more neatly - tidy up</title>
<updated>2009-01-21T22:47:31+00:00</updated>
<author>
<name>Nicholas Marriott</name>
<email>nicholas.marriott@gmail.com</email>
</author>
<published>2009-01-21T22:47:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=392e13534961b80984711f82230d9f34ca4a81bb'/>
<id>392e13534961b80984711f82230d9f34ca4a81bb</id>
<content type='text'>
properly and print a nicer message. Same effect though :-)

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
properly and print a nicer message. Same effect though :-)

</pre>
</div>
</content>
</entry>
<entry>
<title>suspend-client command and suspend client when ^Z key binding is used.</title>
<updated>2009-01-18T12:09:42+00:00</updated>
<author>
<name>Nicholas Marriott</name>
<email>nicholas.marriott@gmail.com</email>
</author>
<published>2009-01-18T12:09:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=8ea49712fd4c9f158128832e6c93308afeb1bd4d'/>
<id>8ea49712fd4c9f158128832e6c93308afeb1bd4d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Minor tidying; remove some old debugging messages.</title>
<updated>2009-01-07T22:57:03+00:00</updated>
<author>
<name>Nicholas Marriott</name>
<email>nicholas.marriott@gmail.com</email>
</author>
<published>2009-01-07T22:57:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=d531dbb53a893365e9f799cddd3f7ae4f7d96b57'/>
<id>d531dbb53a893365e9f799cddd3f7ae4f7d96b57</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Introduce nitems() and use it; use bsearch.</title>
<updated>2009-01-07T22:52:33+00:00</updated>
<author>
<name>Nicholas Marriott</name>
<email>nicholas.marriott@gmail.com</email>
</author>
<published>2009-01-07T22:52:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=4846ad16579f7fcf06fe01e03a56815b2d8c4a93'/>
<id>4846ad16579f7fcf06fe01e03a56815b2d8c4a93</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
