Searched refs:receive (Results 1 - 25 of 27) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
H A DDatagramSocketTest.java74 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 DDatagramSocketImplTest.java128 protected void receive(DatagramPacket pack) throws IOException { method in class:MockDatagramSocketImpl
H A DMulticastSocketTest.java253 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 DDatagramPacketTest.java141 socket.receive(packet);
/libcore/luni/src/test/java/libcore/java/net/
H A DOldDatagramPacketTest.java37 ss.receive(packet);
52 cs.receive(packet);
H A DDatagramSocketTest.java90 // 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 DOldAndroidDatagramTest.java59 socket.receive(packet);
150 socket.receive(packet);
H A DMulticastSocketTest.java71 mcSock.receive(recvPacket);
H A DOldDatagramSocketImplFactoryTest.java183 protected void receive(DatagramPacket arg0) throws IOException { method in class:OldDatagramSocketImplFactoryTest.TestDatagramSocketImpl
H A DSocketTimeoutTest.java176 s.receive(new DatagramPacket(EmptyArray.BYTE, 0));
H A DConcurrentCloseTest.java166 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 DPipedOutputStream.java122 sink.receive(b);
149 sink.receive(b, off, len);
H A DPipedWriter.java124 sink.receive(c);
150 sink.receive(cbuf, off, len);
H A DPipedReader.java170 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 DPipedInputStream.java203 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 DDatagramSocketAdaptor.java174 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 DDatagramChannelImpl.java369 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 DDatagramChannel.java44 * 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 DPipedInputStreamTest.java250 * 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 DMembershipKeyTest.java114 client.receive(buffer);
180 client.receive(buffer);
230 client.receive(buffer);
H A DDatagramChannelMulticastTest.java243 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 DDatagramChannelTest.java664 // 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 DMockDatagramChannel.java60 public SocketAddress receive(ByteBuffer arg0) throws IOException { method in class:MockDatagramChannel
/libcore/ojluni/src/main/java/java/net/
H A DDatagramSocket.java51 * 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 DDatagramSocketImpl.java107 * 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

Completed in 1741 milliseconds

12