On Sun, 2005-11-06 at 10:26 +0100, Dirk Meyer wrote: > I guess this belongs into an extra file.
Maybe socket.py instead of sockets.py? The raison d'etre for this is that I was hacking a simple network client and needed something like this. At first I found myself duplicating most of the same logic I had in kaa.base.ipc for network communication. So I abstracted most of that code into a Socket class. I'll next update kaa.base.ipc to use kaa.notifier.Socket. > Besides, I have a C module > for writing to fds. Instead of using python strings, I use basic > memcpy and malloc which culd be faster. For write buffering, I'm going to change it to use cStringIO instead of strings, so it should be quite fast. It doesn't handle read buffering itself, so whatever code uses it could use cStringIO or whatever. > I'm not sure if we need it here. You mean you don't think we need kaa.notifier.Socket? Why not? I think something like that is very nice to have. Jason.
signature.asc
Description: This is a digitally signed message part