Lines Matching refs:sport
60 int sport = new ServerSocket(0).getLocalPort();
63 Socket s = sf.createSocket(InetAddress.getLocalHost().getHostName(), sport);
65 assertTrue("Failed to create socket", s.getPort() == sport);
68 sf.createSocket("1.2.3.4hello", sport);
97 int sport = new ServerSocket(0).getLocalPort();
100 Socket s = sf.createSocket(InetAddress.getLocalHost(), sport);
102 assertTrue("Failed to create socket", s.getPort() == sport);
128 int sport = new ServerSocket(0).getLocalPort();
130 Socket s = sf.createSocket(InetAddress.getLocalHost(), sport,
133 assertTrue("1: Failed to create socket", s.getPort() == sport);
136 sf.createSocket(InetAddress.getLocalHost(), sport,
214 int sport = new ServerSocket(0).getLocalPort();
217 Socket s = sf.createSocket(InetAddress.getLocalHost().getHostName(), sport,
220 assertTrue("1: Failed to create socket", s.getPort() == sport);
223 sf.createSocket("1.2.3.4hello", sport, InetAddress.getLocalHost(), 0);
236 sf.createSocket(InetAddress.getLocalHost().getHostName(), sport,