HomeSort by relevance Sort by last modified time
    Searched refs:getLocalPort (Results 1 - 25 of 199) sorted by null

1 2 3 4 5 6 7 8

  /external/apache-http/src/org/apache/http/
HttpInetConnection.java 54 int getLocalPort();
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
SocketTest.java 78 port = socket.getLocalPort();
83 port = socket.getLocalPort();
175 int portNumber = theSocket.getLocalPort();
189 int sport = server.getLocalPort();
253 assertTrue(0 != socket.getLocalPort());
260 Socket client = new Socket(InetAddress.getLocalHost(), server.getLocalPort());
343 .getLocalHost(), server.getLocalPort());
354 assertTrue("Local port was 0", client.getLocalPort() != 0);
363 .getLocalPort());
444 .getLocalHost(), server.getLocalPort());
    [all...]
ServerSocketTest.java 125 startClient(s.getLocalPort());
134 ServerSocket s2 = new ServerSocket(s1.getLocalPort());
145 int allocatedPort = s1.getLocalPort();
159 startClient(s.getLocalPort());
175 startClient(s.getLocalPort());
177 int localPort1 = s.getLocalPort();
178 int localPort2 = sconn.getLocalPort();
275 * java.net.ServerSocket#getLocalPort()
288 .getLocalPort());
368 startClient(s.getLocalPort());
    [all...]
MulticastSocketTest.java 118 int port = orig.getLocalPort();
240 MulticastSocket sendingSocket = new MulticastSocket(receivingSocket.getLocalPort());
242 new InetSocketAddress(group, receivingSocket.getLocalPort());
335 new InetSocketAddress(group, receivingSocket.getLocalPort());
359 groupAddress = new InetSocketAddress(group, receivingSocket.getLocalPort());
365 new InetSocketAddress(group2, receivingSocket.getLocalPort());
421 new InetSocketAddress(group, receivingSocket.getLocalPort());
473 SocketAddress groupSockAddr = new InetSocketAddress(group, mss.getLocalPort());
501 InetSocketAddress groupAddress = new InetSocketAddress(group, mss.getLocalPort());
577 groupSockAddr = new InetSocketAddress(group, mss.getLocalPort());
    [all...]
  /libcore/luni/src/test/java/libcore/java/net/
DatagramSocketTest.java 33 assertTrue(ds.getLocalPort() > 0);
36 assertEquals(ds.getLocalPort(), socketAddress.getPort());
55 assertEquals(-1, ds.getLocalPort());
ServerSocketTest.java 44 new Socket(ss.getInetAddress(), ss.getLocalPort());
54 assertEquals(-1, ss.getLocalPort());
73 assertEquals(boundAddress.getPort(), ss.getLocalPort());
OldServerSocketTest.java 60 int portNumber = theSocket.getLocalPort();
90 startClient(s.getLocalPort());
129 assertEquals(-1, ss.getLocalPort());
136 new ServerSocket(s.getLocalPort());
142 startClient(s.getLocalPort());
152 startClient(s.getLocalPort());
164 new ServerSocket(ss.getLocalPort(), 10, InetAddress.getLocalHost());
179 assertEquals(ss1.getLocalPort(), 4242);
184 assertEquals(ss2.getLocalPort(), 4343);
188 assertTrue(ss3.getLocalPort() != 0)
    [all...]
OldDatagramPacketTest.java 49 DatagramPacket packet = new DatagramPacket(bytes, 6, InetAddress.getByName("localhost"), ss.getLocalPort());
54 assertEquals(packet.getPort(), ss.getLocalPort());
OldUnixSocketTest.java 40 InetAddress.getLocalHost(), pingServer.getLocalPort()));
103 int port = ss.getLocalPort();
  /external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/
SSLSocketTest.java 54 SSLSocket soc = new MySSLSocket("localhost", ss.getLocalPort());
65 .getLocalPort());
77 SSLSocket soc = new MySSLSocket("localhost", ss1.getLocalPort(),
78 InetAddress.getLocalHost(), ss2.getLocalPort());
94 .getLocalPort(), InetAddress.getLocalHost(), ss2
95 .getLocalPort());
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/
ServerSocketFactoryTest.java 52 sf.createServerSocket(ss.getLocalPort());
72 sf.createServerSocket(ss.getLocalPort(), 0);
93 sf.createServerSocket(ss.getLocalPort(), 0, InetAddress.getLocalHost());
SocketFactoryTest.java 47 assertEquals(-1, s.getLocalPort());
60 int sport = new ServerSocket(0).getLocalPort();
82 sf.createSocket(InetAddress.getLocalHost().getHostName(), s.getLocalPort());
97 int sport = new ServerSocket(0).getLocalPort();
113 sf.createSocket(InetAddress.getLocalHost(), s.getLocalPort());
128 int sport = new ServerSocket(0).getLocalPort();
135 int portNumber = s.getLocalPort();
174 int sport = new ServerSocket(0).getLocalPort();
  /external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/core/socket/
StubServerSocket.java 37 * @param localPort - the local port to be returned from getLocalPort()
46 * @param localPort - the local port to be returned from getLocalPort()
58 * @see java.net.ServerSocket#getLocalPort()
60 public int getLocalPort() {
  /external/mockftpserver/branches/1.x_Branch/src/test/java/org/mockftpserver/core/socket/
StubServerSocket.java 37 * @param localPort - the local port to be returned from getLocalPort()
46 * @param localPort - the local port to be returned from getLocalPort()
58 * @see java.net.ServerSocket#getLocalPort()
60 public int getLocalPort() {
  /libcore/ojluni/src/main/java/java/net/
SocketImpl.java 285 protected int getLocalPort() {
312 ",port=" + getPort() + ",localport=" + getLocalPort() + "]";
  /libcore/support/src/test/java/tests/net/
StuckServer.java 66 Socket client = new Socket(serverSocket.getInetAddress(), serverSocket.getLocalPort());
82 public int getLocalPort() {
  /cts/tests/tests/net/src/android/net/rtp/cts/
AudioGroupTest.java 54 mSocketA.connect(mStreamA.getLocalAddress(), mStreamA.getLocalPort());
55 mStreamA.associate(mSocketA.getLocalAddress(), mSocketA.getLocalPort());
61 mSocketB.connect(mStreamB.getLocalAddress(), mStreamB.getLocalPort());
62 mStreamB.associate(mSocketB.getLocalAddress(), mSocketB.getLocalPort());
  /external/jetty/src/java/org/eclipse/jetty/io/
EndPoint.java 107 public int getLocalPort();
  /external/apache-harmony/luni/src/test/api/unix/org/apache/harmony/luni/tests/java/net/
UnixSocketTest.java 44 InetAddress.getLocalHost(), pingServer.getLocalPort()));
107 int port = ss.getLocalPort();
  /external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/
SSLSocketFactoriesTest.java 138 ssocket.getLocalPort()));
147 ssocket.getLocalPort());
156 ssocket.getLocalPort(),
166 ssocket.getLocalPort());
175 ssocket.getLocalPort(),
187 ssocket.getLocalPort());
189 socket, "localhost", ssocket.getLocalPort(),
  /development/samples/training/NsdChat/src/com/example/android/nsdchat/
NsdChatActivity.java 62 if(mConnection.getLocalPort() > -1) {
63 mNsdHelper.registerService(mConnection.getLocalPort());
  /external/apache-http/src/org/apache/http/impl/
SocketHttpClientConnection.java 135 public int getLocalPort() {
137 return this.socket.getLocalPort();
SocketHttpServerConnection.java 133 public int getLocalPort() {
135 return this.socket.getLocalPort();
  /external/conscrypt/src/main/java/org/conscrypt/
OpenSSLSocketImplWrapper.java 194 public int getLocalPort() {
195 return socket.getLocalPort();
  /libcore/luni/src/test/java/libcore/javax/net/
ServerSocketFactoryTest.java 75 Socket socket = new Socket(InetAddress.getLocalHost(), serverSocket.getLocalPort());
77 InetAddress.getLocalHost(), serverSocket.getLocalPort()));

Completed in 1047 milliseconds

1 2 3 4 5 6 7 8