title: How do I split large objects into packets to send over a socket?
body: <p>I need to break a large object (say a File Object) into 4kb sized chunks to send over a socket in my client-server application, but I can't fathom how. I'm using python.</p>