(mongodb >=1.13.0)
MongoDB\Driver\Monitoring\ServerChangedEvent::getPort — Returns the port on which this server is listening
此函數沒(méi)有參數。
Returns the port on which this server is listening.