Python strings always carry their length, and can have embedded NULs.
s.write("\0\1\2\3")
should write 4 bytes to the socket 's'.Jeff
pgpYpor1iHZad.pgp
Description: PGP signature
-- http://mail.python.org/mailman/listinfo/python-list
Python strings always carry their length, and can have embedded NULs.
s.write("\0\1\2\3")
should write 4 bytes to the socket 's'.Jeff
pgpYpor1iHZad.pgp
Description: PGP signature
-- http://mail.python.org/mailman/listinfo/python-list