Send all packets (socket programming)

2005-05-22 Thread Tomas Christiansen
Is there a way to make shure that all packets has been sent before issuing a Shutdown and/or Close on a (TCP) Socket? The problem is that the other end interprets a reset-flag (RST) on an IP- packet as an indication of an error. Instead the finish-flag (FIN) must be set, in order to close the

Simple TCP relay or proxy

2005-05-13 Thread Tomas Christiansen
Im trying to make a simple TCP socket relay or proxy, but my skills in Python are not high (yet). The only thing it should do, is to open the connection on behalf of the client, and when the client closes the connection, it should do so too. It's going to relay PCL and/or PostScript printjobs

Re: lies about OOP

2004-12-14 Thread Tomas Christiansen
projecktzero wrote: A co-worker considers himself old school in that he hasn't seen the light of OOP ... He thinks that OOP has more overhead and is slower than programs written the procedural way. He may be right, but consider the alternatives. Think of an integer. An integer is an object!