Searched refs:port (Results 76 - 100 of 622) sorted by relevance

1234567891011>>

/openjdk7/jdk/test/sun/misc/IoTrace/
H A DIoTraceBase.java38 private int port; field in class:IoTraceBase
46 port = 0;
81 public void socketReadEnd(Object context, InetAddress address, int port, argument
85 this.port = port;
96 public void socketWriteEnd(Object context, InetAddress address, int port, argument
100 this.port = port;
147 if (port != p) {
148 throw new Exception("Expected " + p + " port, go
[all...]
/openjdk7/jdk/src/share/classes/sun/net/www/protocol/http/
H A DAuthenticationInfo.java95 return port;
160 //return ("{"+type+":"+authScheme+":"+protocol+":"+host+":"+port+":"+realm+":"+path+"}");
182 /** The port on the host we're authenticating against. */
183 int port; field in class:AuthenticationInfo
192 public AuthenticationInfo(char type, AuthScheme authScheme, String host, int port, String realm) { argument
197 this.port = port;
220 this.port = url.getPort();
221 if (this.port == -1) {
222 this.port
310 getProxyAuth(String host, int port) argument
321 getProxyAuthKey(String host, int port, String realm, AuthScheme scheme) argument
[all...]
/openjdk7/jdk/test/java/net/Inet6Address/
H A DB6558853.java37 private int port = 0; field in class:B6558853
41 int port = ss.getLocalPort();
61 B6558853 test = new B6558853(dest, port);
76 public B6558853(InetAddress a, int port) { argument
78 this.port = port;
83 Socket s = new Socket(addr, port);
/openjdk7/jdk/test/java/net/PortUnreachableException/
H A DOneExceptionOnly.java36 static void doTest(InetAddress ia, int port, boolean testSend) throws Exception { argument
55 s1.connect(ia, port);
84 * Give time for ICMP port unreachables to return
128 int port;
131 port = Integer.parseInt(args[1]);
135 port = s1.getLocalPort();
139 doTest(ia, port, true);
140 doTest(ia, port, false);
/openjdk7/jdk/test/sun/security/ssl/com/sun/net/ssl/internal/ssl/GenSSLConfigs/
H A DServerThread.java31 private int port; field in class:ServerThread
47 ServerThread (int port, int backlog, SSLContext ctx) argument
52 this.port = port;
77 return port;
101 factory.createServerSocket(port, backlog);
102 port = ss.getLocalPort();
/openjdk7/jdk/test/javax/management/remote/mandatory/socketFactories/
H A DRMISocketFactoriesTest.java60 int port = 5800;
61 while (port++ < 6000) {
63 reg = LocateRegistry.createRegistry(port);
64 System.out.println("RMI registry running on port " + port);
69 "on port " + port);
93 "/jndi/rmi://:" + port + "/server" + port);
/openjdk7/jdk/src/share/classes/sun/management/jdp/
H A DJdpBroadcaster.java42 * <p> Multicast group address, port number and ttl have to be chosen on upper
46 * <p>JdpBradcaster doesn't perform any validation on a supplied {@code port} and {@code ttl} because
53 private final int port; field in class:JdpBroadcaster
61 * @param port - udp port to use
65 public JdpBroadcaster(InetAddress address, InetAddress srcAddress, int port, int ttl) argument
68 this.port = port;
95 * @param port - udp port t
99 JdpBroadcaster(InetAddress address, int port, int ttl) argument
[all...]
/openjdk7/jdk/src/share/sample/nio/chatserver/
H A DChatServer.java52 * It sets up a server socket using AsynchronousServerSocketChannel listening to a specified port.
56 private int port; field in class:ChatServer
62 * @param port to listen to
65 public ChatServer(int port) throws IOException { argument
68 this.port = port;
118 listener.bind(new InetSocketAddress(port));
166 System.err.println("ChatServer [-port <port number>]");
171 int port
[all...]
/openjdk7/jdk/src/share/sample/nio/server/
H A DServer.java65 Server(int port, int backlog, argument
74 ssc.socket().bind(new InetSocketAddress(port), backlog);
112 + " -port port port number\n"
129 int port = PORT;
134 if (args[i].equals("-port")) {
136 port = Integer.valueOf(args[++i]);
150 server = new B1(port, backlog, secure);
152 server = new BN(port, backlo
[all...]
/openjdk7/jdk/src/share/classes/com/sun/tools/jdi/
H A DSocketListeningConnector.java38 static final String ARG_PORT = "port";
46 getString("socket_listening.port.label"),
47 getString("socket_listening.port"),
71 String port = argument(ARG_PORT, args).value();
74 // default to system chosen port
75 if (port.length() == 0) {
76 port = "0";
80 localaddr = localaddr + ":" + port;
82 localaddr = port;
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/ws/policy/jaxws/
H A DBuilderHandlerOperationScope.java45 private final QName port; field in class:BuilderHandlerOperationScope
53 , QName service, QName port, QName operation) {
57 this.port = port;
62 final PolicyMapKey mapKey = PolicyMap.createWsdlOperationScopeKey(service, port, operation);
49 BuilderHandlerOperationScope( Collection<String> policyURIs , Map<String,PolicySourceModel> policyStore , Object policySubject , QName service, QName port, QName operation) argument
H A DBuilderHandlerMessageScope.java45 private final QName port; field in class:BuilderHandlerMessageScope
63 , QName service, QName port, QName operation, QName message) {
67 this.port = port;
96 result = result && ((this.port == null) ? ((that.port == null) ? true : false) :this.port.equals(that.port));
111 hashCode = 31 * hashCode + (port == null ? 0 : port
58 BuilderHandlerMessageScope( Collection<String> policyURIs , Map<String,PolicySourceModel> policyStore , Object policySubject , Scope scope , QName service, QName port, QName operation, QName message) argument
[all...]
/openjdk7/jdk/test/java/net/URLConnection/
H A DRedirect307Test.java37 int port; field in class:RedirServer
51 port = this.ss.getLocalPort();
83 String reply = reply1Part1 + port + reply1Part2;
105 int port = sock.getLocalPort();
109 URL url = new URL("http://localhost:" + port);
/openjdk7/jdk/src/share/classes/sun/rmi/transport/tcp/
H A DTCPEndpoint.java66 /** port number */
67 private int port; field in class:TCPEndpoint
73 /** if local, the port number to listen on */
154 * Create an endpoint for a specified host and port.
158 public TCPEndpoint(String host, int port) { argument
159 this(host, port, null, null);
163 * Create a custom socket factory endpoint for a specified host and port.
167 public TCPEndpoint(String host, int port, RMIClientSocketFactory csf, argument
173 this.port = port;
183 getLocalEndpoint(int port) argument
187 getLocalEndpoint(int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf) argument
322 setDefaultPort(int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf) argument
[all...]
/openjdk7/jdk/test/sun/management/jmxremote/startstop/
H A DJMXStartStopTest.sh124 # restart on other port
128 _app_start -Dcom.sun.management.jmxremote.port=$1 \
138 _jcmd ManagementAgent.start jmxremote.port=$2
162 _jcmd ManagementAgent.start jmxremote.port=$1 jmxremote.authenticate=false jmxremote.ssl=false
180 # start JMX by jcmd on one port than on other one
185 _jcmd ManagementAgent.start jmxremote.port=$1 jmxremote.authenticate=false jmxremote.ssl=false
188 _jcmd ManagementAgent.start jmxremote.port=$2 jmxremote.authenticate=false jmxremote.ssl=false
216 # start JMX by jcmd on one port, specify rmi port explicitly
221 _jcmd ManagementAgent.start jmxremote.port
[all...]
/openjdk7/jdk/test/com/sun/jdi/
H A DProcessAttachDebuggee.java28 * This debuggee binds to a random TCP port and waits for a client to connect.
37 // bind to a random port
39 int port = ss.getLocalPort();
41 // Write the port number to the given file
44 fos.write( Integer.toString(port).getBytes("UTF-8") );
47 System.out.println("Debuggee bound to port: " + port);
H A DShutdownDebuggee.java28 * used to shutdown the debuggee by connecting to its shutdown port.
38 // read the (TCP) port number from the given file
51 int port = Integer.parseInt(str);
53 // Now connect to the port (which will shutdown debuggee)
55 System.out.println("Connecting to port " + port +
59 s.connect( new InetSocketAddress(port) );
/openjdk7/jdk/test/java/net/MulticastSocket/
H A DMulticastTTL.java40 int port = 0;
47 port = soc.getLocalPort();
49 pac = new DatagramPacket(array, array.length, sin, port);
/openjdk7/jdk/test/java/net/Socket/
H A DCloseAvailable.java38 static int port; field in class:CloseAvailable
44 port = ss.getLocalPort();
67 Socket s = new Socket(addr, port);
H A DOldImpl.java47 protected void bind(InetAddress host, int port){ argument
53 protected void connect(InetAddress address, int port){ argument
56 protected void connect(String host, int port){ argument
H A DOldSocketImpl.java45 protected void connect(String host, int port) throws IOException { } argument
47 protected void connect(InetAddress address, int port) throws IOException { } argument
52 protected void bind(InetAddress host, int port) throws IOException { } argument
H A DSoTimeout.java43 static int port; field in class:SoTimeout
48 port = serverSocket.getLocalPort();
76 Socket s = new Socket(addr, port);
/openjdk7/jdk/test/java/net/Socket/setReuseAddress/
H A DRestart.java37 * Test that a server can bind to the same port after
47 int port = ss.getLocalPort();
49 s1 = new Socket(InetAddress.getLocalHost(), port);
57 ss.bind( new InetSocketAddress(port) );
/openjdk7/jdk/test/sun/security/ssl/sanity/pluggability/
H A DMySSLServerSocketFacImpl.java53 public ServerSocket createServerSocket(int port) { return null; } argument
54 public ServerSocket createServerSocket(int port, int backlog) { argument
57 public ServerSocket createServerSocket(int port, int backlog, argument
/openjdk7/jdk/test/sun/tools/common/
H A DShutdownSimpleApplication.java26 * this class is the name of a file that contains the TCP port number
43 " port-file");
46 // read the (TCP) port number from the given file
53 throw new RuntimeException("Empty port-file");
59 int port = Integer.parseInt(str);
61 // Now connect to the port (which will shutdown application)
63 System.out.println("INFO: Connecting to port " + port +
68 s.connect( new InetSocketAddress(port) );

Completed in 68 milliseconds

1234567891011>>