Searched defs:localPort (Results 1 - 12 of 12) sorted by relevance

/openjdk7/jdk/test/java/net/ServerSocket/
H A DThreadStop.java45 public int localPort() { method in class:ThreadStop.Server
85 Socket s = new Socket("localhost", svr.localPort());
/openjdk7/jdk/src/share/classes/javax/net/
H A DSocketFactory.java174 * @param localPort the local port the socket is bound to
180 * @throws IllegalArgumentException if the port parameter or localPort
187 createSocket(String host, int port, InetAddress localHost, int localPort) argument
230 * @param localPort the client port
235 * @throws IllegalArgumentException if the port parameter or localPort
245 InetAddress localAddress, int localPort)
244 createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) argument
/openjdk7/jdk/src/share/classes/sun/security/krb5/internal/
H A DAuthContext.java40 public int localPort; field in class:AuthContext
/openjdk7/jdk/src/share/classes/java/net/
H A DDatagramSocketImpl.java43 protected int localPort; field in class:DatagramSocketImpl
233 return localPort;
H A DSocket.java267 * @param localPort the local port the socket is bound to, or
272 * @exception IllegalArgumentException if the port parameter or localPort
279 int localPort) throws IOException {
282 new InetSocketAddress(localAddr, localPort), true);
305 * @param localPort the local port the socket is bound to or
310 * @exception IllegalArgumentException if the port parameter or localPort
318 int localPort) throws IOException {
320 new InetSocketAddress(localAddr, localPort), true);
278 Socket(String host, int port, InetAddress localAddr, int localPort) argument
317 Socket(InetAddress address, int port, InetAddress localAddr, int localPort) argument
/openjdk7/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/
H A DHttpsCreateSockTest.java172 int localPort) throws IOException {
174 return SocketFactory.getDefault().createSocket(address, port, localAddress, localPort);
185 int localPort) throws IOException {
187 return SocketFactory.getDefault().createSocket(host, port, localHost, localPort);
171 createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) argument
184 createSocket(String host, int port, InetAddress localHost, int localPort) argument
H A DHttpsSocketFacTest.java185 int localPort) throws IOException {
187 return SocketFactory.getDefault().createSocket(address, port, localAddress, localPort);
198 int localPort) throws IOException {
200 return SocketFactory.getDefault().createSocket(host, port, localHost, localPort);
184 createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) argument
197 createSocket(String host, int port, InetAddress localHost, int localPort) argument
/openjdk7/jdk/test/sun/security/ssl/sanity/pluggability/
H A DMySSLSocketFacImpl.java58 InetAddress localAddress, int localPort) {
65 localHost, int localPort) { return new MySSLSocket(this); }
57 createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) argument
64 createSocket(String host, int port, InetAddress localHost, int localPort) argument
/openjdk7/jdk/src/windows/classes/java/net/
H A DPlainSocketImpl.java216 void setLocalPort(int localPort) { argument
217 impl.setLocalPort(localPort);
/openjdk7/jdk/src/share/classes/sun/nio/ch/
H A DNet.java481 private static native int localPort(FileDescriptor fd) method in class:Net
490 return new InetSocketAddress(localInetAddress(fd), localPort(fd));
/openjdk7/jdk/src/solaris/native/java/net/
H A DPlainDatagramSocketImpl.c159 pdsi_localPortID = (*env)->GetFieldID(env, cls, "localPort", "I");
376 int localPort = 0; local
380 localPort = NET_GetPortFromSockaddr((struct sockaddr *)&addr);
381 if (localPort == 0) {
382 localPort = (*env)->GetIntField(env, this, pdsi_localPortID);
385 ((struct sockaddr_in6*)&addr)->sin6_port = htons(localPort);
389 ((struct sockaddr_in*)&addr)->sin_port = htons(localPort);
/openjdk7/jdk/src/share/classes/sun/security/ssl/
H A DSSLSocketImpl.java438 * @param localPort the local port the socket is bound to
441 InetAddress localAddr, int localPort)
447 bind(new InetSocketAddress(localAddr, localPort));
465 * @param localPort the local port the socket is bound to
468 InetAddress localAddr, int localPort)
472 bind(new InetSocketAddress(localAddr, localPort));
440 SSLSocketImpl(SSLContextImpl context, String host, int port, InetAddress localAddr, int localPort) argument
467 SSLSocketImpl(SSLContextImpl context, InetAddress host, int port, InetAddress localAddr, int localPort) argument

Completed in 105 milliseconds