Added local_endpoint method and endpoint type.