BYTES-WRITTEN attribute Returns the number of bytes written to the socket via the last WRITE( ) method. If the last WRITE( ) method failed, this attribute will return 0. Data type: INTEGER Access: Read-only Applies to: Socket object handle