Home | History | Annotate | Download | only in conscrypt

Lines Matching refs:port

24  * Caches client sessions. Indexes by host and port. Users are typically
25 * looking to reuse any session for a given host and port.
32 * Sessions indexed by host and port. Protect from concurrent
55 NativeSslSession getCachedSession(String hostName, int port, SSLParametersImpl sslParameters) {
60 NativeSslSession session = getSession(hostName, port);
97 * Finds a cached session for the given host name and port.
100 * @param port of server
103 private NativeSslSession getSession(String host, int port) {
108 HostAndPort key = new HostAndPort(host, port);
119 byte[] data = persistentCache.getSessionData(host, port);
121 session = NativeSslSession.newInstance(this, data, host, port);
137 int port = session.getPeerPort();
142 HostAndPort key = new HostAndPort(host, port);
162 int port = session.getPeerPort();
163 HostAndPort hostAndPortKey = new HostAndPort(host, port);
177 final int port;
179 HostAndPort(String host, int port) {
181 this.port = port;
186 return host.hashCode() * 31 + port;
195 return host.equals(lhs.host) && port == lhs.port;