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