MongoDB\Driver\ServerDescription::getPort
(mongodb >=1.13.0)
MongoDB\Driver\ServerDescription::getPort — Returns the port on which this server is listening
Beschreibung
Returns the port on which this server is listening.
Parameter-Liste
Diese Funktion besitzt keine Parameter.
Rückgabewerte
Returns the port on which this server is listening.
Fehler/Exceptions
- Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.
Siehe auch
- MongoDB\Driver\Server::getPort() - Returns the port on which this server is listening