Lines Matching refs:s1
63 Socket s1 = new Socket();
66 check(!s1.getReuseAddress());
69 s1.setReuseAddress(true);
70 check(s1.getReuseAddress());
73 s1.setReuseAddress(false);
74 check(!s1.getReuseAddress() );
77 s1.bind( new InetSocketAddress(0) );
83 s2.bind( new InetSocketAddress(s1.getLocalPort()) );
90 s1.close();
94 ServerSocket s1 = new ServerSocket();
97 s1.setReuseAddress(true);
98 check(s1.getReuseAddress());
101 s1.setReuseAddress(false);
102 check(!s1.getReuseAddress() );
105 s1.bind( new InetSocketAddress(0) );
111 s2.bind( new InetSocketAddress(s1.getLocalPort()) );
118 s1.close();
122 DatagramSocket s1 = new DatagramSocket(null);
125 check(!s1.getReuseAddress());
128 s1.setReuseAddress(true);
129 check(s1.getReuseAddress());
132 s1.setReuseAddress(false);
133 check(!s1.getReuseAddress() );
136 s1.bind( new InetSocketAddress(0) );
142 s2.bind( new InetSocketAddress(s1.getLocalPort()) );
148 s1.close();
152 s1 = new DatagramSocket(null);
153 s1.setReuseAddress(true);
154 s1.bind( new InetSocketAddress(0) );
160 s2.bind( new InetSocketAddress(s1.getLocalPort()) );
172 s2.bind( new InetSocketAddress(s1.getLocalPort()) );
184 s1.close();
190 MulticastSocket s1 = new MulticastSocket();
191 check(s1.getReuseAddress());
192 s1.close();
197 s1 = new MulticastSocket(null);
202 s1.bind(isa);
203 check(s1.getReuseAddress());
204 s1.close();