def write_ros_handshake_header(sock, header):
 s = encode_ros_handshake_header(header)
 sock.sendall(s)
 return len(s)

def write_ros_handshake_header ( sock , header ) : s = encode_ros_handshake_header ( header ) sock . sendall ( s ) return len ( s )
write ros handshake header header to socket sock .