> where's the seek ? > > the second argument to makefile is the requested buffer size. > Good question. The seek must be in the binary write. I'm not calling it directly. Again, the error only occurs when the binary flag is set. Any write on a socket file with the binary flag set causes a seek error. http://baus.net/