Compare two endpoints for equality.
friend bool operator==( const basic_endpoint< Protocol > & e1, const basic_endpoint< Protocol > & e2);