[Parti-discuss] [PATCH] tcp socket support V2

Antoine Martin antoine at nagafix.co.uk
Tue Mar 10 06:16:16 EDT 2009


Hi,

As discussed, here is the updated (more simple) patch:
* adds a '--bind-tcp=host:port' command line option for the server
* client can connect using the syntax tcp:host:port
(both will default to 127.0.0.1 if the host part is not specified)
* moved socket creation from server.py to scripts/server.py

Unchanged from previous patch:
* split __init__ in server.py into init_wm, init_keymap

Also replaced tabs by spaces and updated man page.

Hope this one is good enough...

Antoine

PS: also renamed sockdir to dotxpra (more meaningful?) and it may get
created twice if --deamon is set, which is the default.
This was a conscious decision to make the code easier to read, the added
cost of creating this object twice (and checking for the presence of the
.xpra directory twice) in a slow startup path is not worth complicating
the create_local_ipc_socket() function arguments, or is it?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: parti-tcp-socket-V2.patch
Type: text/x-patch
Size: 7704 bytes
Desc: not available
URL: <http://lists.partiwm.org/pipermail/parti-discuss/attachments/20090310/ee49cf95/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://lists.partiwm.org/pipermail/parti-discuss/attachments/20090310/ee49cf95/attachment-0001.pgp>


More information about the Parti-discuss mailing list