MCPcopy Create free account
hub / github.com/grpc/grpc-java / getPort

Method getPort

api/src/main/java/io/grpc/Server.java:62–64  ·  view source on GitHub ↗

Returns the port number the server is listening on. This can return -1 if there is no actual port or the result otherwise does not make sense. Result is undefined after the server is terminated. If there are multiple possible ports, this will return one arbitrarily. Implementations are encouraged

()

Source from the content-addressed store, hash-verified

60 * @since 1.0.0
61 */
62 public int getPort() {
63 return -1;
64 }
65
66 /**
67 * Returns a list of listening sockets for this server. May be different than the originally

Calls

no outgoing calls