/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
H A D | DatagramSocketTest.java | 74 serverSocket.receive(rdp); 107 // receive messages from groups they explicitly joined. 177 DatagramPacket receive = new DatagramPacket(new byte[20], 20); 179 ds.receive(receive); 182 assertEquals(10, receive.getLength()); 183 assertEquals(localHost, receive.getAddress()); 212 final DatagramPacket receive = new DatagramPacket(new byte[20], 20); 216 ds.receive(receive); 449 protected void receive(DatagramPacket arg0) throws IOException { method in class:DatagramSocketTest.TestDatagramSocketImpl [all...] |
H A D | DatagramSocketImplTest.java | 128 protected void receive(DatagramPacket pack) throws IOException { method in class:MockDatagramSocketImpl
|
H A D | MulticastSocketTest.java | 253 receivingSocket.receive(rdp); 350 receivingSocket.receive(rdp); 377 receivingSocket.receive(rdp); 390 // Check that we can join on specific interfaces and that we only receive if data is 399 // they cannot send / receive multicast messages. 440 receivingSocket.receive(rdp); 638 receivingSocket.receive(rdp); 752 receivingSocket.receive(rdp); 860 // Test send receive. 875 socket.receive(recvDatagra [all...] |
H A D | DatagramPacketTest.java | 141 socket.receive(packet);
|
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | OldDatagramPacketTest.java | 37 ss.receive(packet); 52 cs.receive(packet);
|
H A D | DatagramSocketTest.java | 90 // Confirm receive() throws the pendingConnectException. 92 s.receive(p); 170 dgramSocket.receive(recv); 184 // should not be dropped and receive() should succeed. 186 dgramSocket.receive(recv); 211 ds.receive(p); 216 ds.receive(p);
|
H A D | OldAndroidDatagramTest.java | 59 socket.receive(packet); 150 socket.receive(packet);
|
H A D | MulticastSocketTest.java | 71 mcSock.receive(recvPacket);
|
H A D | OldDatagramSocketImplFactoryTest.java | 183 protected void receive(DatagramPacket arg0) throws IOException { method in class:OldDatagramSocketImplFactoryTest.TestDatagramSocketImpl
|
H A D | SocketTimeoutTest.java | 176 s.receive(new DatagramPacket(EmptyArray.BYTE, 0));
|
H A D | ConcurrentCloseTest.java | 166 System.err.println("receive..."); 167 s.receive(p); 168 fail("receive returned!"); 175 final SilentServer ss = new SilentServer(128); // Minimal receive buffer size.
|
/libcore/ojluni/src/main/java/java/io/ |
H A D | PipedOutputStream.java | 122 sink.receive(b); 149 sink.receive(b, off, len);
|
H A D | PipedWriter.java | 124 sink.receive(c); 150 sink.receive(cbuf, off, len);
|
H A D | PipedReader.java | 170 synchronized void receive(int c) throws IOException { method in class:PipedReader 208 synchronized void receive(char c[], int off, int len) throws IOException { method in class:PipedReader 210 receive(c[off++]);
|
H A D | PipedInputStream.java | 203 protected synchronized void receive(int b) throws IOException { method in class:PipedInputStream 228 synchronized void receive(byte b[], int off, int len) throws IOException { method in class:PipedInputStream
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | DatagramSocketAdaptor.java | 174 private SocketAddress receive(ByteBuffer bb) throws IOException { method in class:DatagramSocketAdaptor 176 return dc.receive(bb); 183 if ((sender = dc.receive(bb)) != null) 193 if ((sender = dc.receive(bb)) != null) 207 public void receive(DatagramPacket p) throws IOException { method in class:DatagramSocketAdaptor 216 SocketAddress sender = receive(bb); 315 throw new IllegalArgumentException("Invalid receive size"); 388 protected void receive(DatagramPacket p) throws IOException {}
|
H A D | DatagramChannelImpl.java | 369 public SocketAddress receive(ByteBuffer dst) throws IOException { method in class:DatagramChannelImpl 380 // Socket was not bound before attempting receive 393 n = receive(fd, dst); 401 n = receive(fd, bb); 432 private int receive(FileDescriptor fd, ByteBuffer dst) method in class:DatagramChannelImpl 808 } while (receive(tmpBuf) != null); 989 * Block datagrams from given source if a memory to receive all
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
H A D | DatagramChannel.java | 44 * send} and {@link #receive receive} methods to be used. A datagram channel may be 47 * every send and receive operation. A datagram channel must be connected in 71 * <td> The size of the socket receive buffer </td> 303 * <p> The channel's socket is configured so that it can receive datagrams 353 * java.net.DatagramSocket#receive receive} method of the {@link 398 public abstract SocketAddress receive(ByteBuffer dst) throws IOException; method in class:DatagramChannel
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
H A D | PipedInputStreamTest.java | 250 * java.io.PipedInputStream#receive(int) 311 public void receive(int oneByte) throws IOException { method in class:PipedInputStreamTest.PipedInputStreamWithPublicReceive 312 super.receive(oneByte); 325 pis.receive(1);
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
H A D | MembershipKeyTest.java | 114 client.receive(buffer); 180 client.receive(buffer); 230 client.receive(buffer);
|
H A D | DatagramChannelMulticastTest.java | 243 SocketAddress sourceAddress = receiverChannel.receive(recvBuffer); 247 // now verify that we didn't receive the second message 252 SocketAddress sourceAddress2 = receiverChannel.receive(recvBuffer); 317 // Check that we can join on specific interfaces and that we only receive if data is 334 // they cannot send / receive multicast messages. 369 SocketAddress sourceAddress = dc.receive(recvBuffer); 457 // receive the datagram 459 SocketAddress sourceAddress = dc.receive(recvBuffer); 473 SocketAddress sourceAddress2 = dc.receive(recvBuffer); 796 InetSocketAddress sourceAddress1 = (InetSocketAddress) receivingChannel.receive(receiveBuffe [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
H A D | DatagramChannelTest.java | 664 // Test for receive(): Behavior Without Server. 668 * Test method for 'DatagramChannelImpl.receive(ByteBuffer)' 673 this.channel1.receive(null); 681 * Test method for 'DatagramChannelImpl.receive(ByteBuffer)' 689 this.channel1.receive(dst); 697 * Test method for 'DatagramChannelImpl.receive(ByteBuffer)' 703 assertNull(this.channel1.receive(dst)); 712 assertNull(dc.receive(dst)); 726 assertNull(dc.receive(dst)); 741 assertNull(dc.receive(ds [all...] |
H A D | MockDatagramChannel.java | 60 public SocketAddress receive(ByteBuffer arg0) throws IOException { method in class:MockDatagramChannel
|
/libcore/ojluni/src/main/java/java/net/ |
H A D | DatagramSocket.java | 51 * to allow the transmission of broadcast datagrams. In order to receive 65 * Both cases will create a DatagramSocket able to receive broadcasts on 438 * send or receive may throw a PortUnreachableException. Note, there is no 454 * <p> When a socket is connected, {@link #receive receive} and 756 public synchronized void receive(DatagramPacket p) throws IOException { method in class:DatagramSocket 794 getImpl().receive(tmp); 834 getImpl().receive(tmp); 846 // connected then receive the packet 847 getImpl().receive( [all...] |
H A D | DatagramSocketImpl.java | 107 * send or receive may throw a PortUnreachableException. 138 * but not consumed, so that a subsequent peekData/receive operation 158 protected abstract void receive(DatagramPacket p) throws IOException; method in class:DatagramSocketImpl 221 * @param netIf specifies the local interface to receive multicast
|