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

/libcore/luni/src/test/java/libcore/java/net/
H A DOldDatagramSocketTest.java72 ms.receive(rdp);
298 DatagramPacket receive = new DatagramPacket(new byte[20], 20);
300 ds.receive(receive);
302 assertTrue("Wrong size: " + receive.getLength(), receive
304 assertTrue("Wrong receiver", receive.getAddress().equals(localHost));
323 ms.receive(rdp);
362 DatagramPacket receive = new DatagramPacket(new byte[20], 20);
364 ds.receive(receiv
2091 protected void receive(DatagramPacket arg0) throws IOException { method in class:OldDatagramSocketTest.TestDatagramSocketImpl
[all...]
H A DOldDatagramPacketTest.java37 ss.receive(packet);
52 cs.receive(packet);
H A DOldAndroidDatagramTest.java59 socket.receive(packet);
150 socket.receive(packet);
176 sock.receive(pack);
H A DOldDatagramSocketImplFactoryTest.java183 protected void receive(DatagramPacket arg0) throws IOException { method in class:OldDatagramSocketImplFactoryTest.TestDatagramSocketImpl
H A DConcurrentCloseTest.java170 System.err.println("receive...");
171 s.receive(p);
172 fail("receive returned!");
179 final SilentServer ss = new SilentServer(128); // Minimal receive buffer size.
/libcore/luni/src/main/java/java/io/
H A DPipedWriter.java159 reader.receive(buffer, offset, count);
188 reader.receive((char) c);
H A DPipedOutputStream.java176 stream.receive(oneByte);
H A DPipedReader.java238 * of "Pipe broken" will be thrown in receive()
252 // Notify callers of receive()
326 * If the buffer is full and the thread sending #receive is interrupted, the
336 synchronized void receive(char oneChar) throws IOException { method in class:PipedReader
376 * If the buffer is full and the thread sending #receive is interrupted, the
383 synchronized void receive(char[] chars, int offset, int count) throws IOException { method in class:PipedReader
H A DPipedInputStream.java221 * "Pipe broken" will be thrown in receive()
234 // Notify callers of receive()
299 * "Pipe broken" will be thrown in receive()
312 // Notify callers of receive()
377 protected synchronized void receive(int oneByte) throws IOException { method in class:PipedInputStream
/libcore/luni/src/test/java/libcore/java/nio/channels/
H A DDatagramChannelTest.java53 assertNull(dc.receive(ByteBuffer.allocate(2048)));
/libcore/harmony-tests/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/
H A DMockDatagramChannel.java49 public SocketAddress receive(ByteBuffer arg0) throws IOException { method in class:MockDatagramChannel
H A DDatagramChannelTest.java444 SocketAddress addr = channel1.receive(buf);
740 // Test for receive(): Behavior Without Server.
744 * Test method for 'DatagramChannelImpl.receive(ByteBuffer)'
751 this.channel1.receive(null);
759 * Test method for 'DatagramChannelImpl.receive(ByteBuffer)'
769 this.channel1.receive(dst);
777 * Test method for 'DatagramChannelImpl.receive(ByteBuffer)'
785 assertNull(this.channel1.receive(dst));
789 * Test method for 'DatagramChannelImpl.receive(ByteBuffer)'
796 assertNull(this.channel1.receive(ds
[all...]
/libcore/luni/src/main/java/java/net/
H A DDatagramSocketImpl.java47 * bound prior to attempting to send or receive data.
117 * a group before being able to receive data. Further, a socket may be a
130 * a group before being able to receive data. Further, a socket may be a
136 * the local network interface which will receive the multicast
194 protected abstract void receive(DatagramPacket pack) throws IOException; method in class:DatagramSocketImpl
260 * {@code peekData()} or {@code receive()} call. This call blocks until
H A DDatagramSocket.java202 * Returns this socket's {@link SocketOptions#SO_RCVBUF receive buffer size}.
218 * Gets the socket {@link SocketOptions#SO_TIMEOUT receive timeout}.
240 public synchronized void receive(DatagramPacket pack) throws IOException { method in class:DatagramSocket
250 impl.receive(pack);
316 * Sets this socket's {@link SocketOptions#SO_SNDBUF receive buffer size}.
328 * This receive timeout defines the period the socket will block waiting to
329 * receive data before throwing an {@code InterruptedIOException}. The value
463 * Future calls to {@link #send} will use this as the default target, and {@link #receive}
496 * Future calls to {@link #send} will use this as the default target, and {@link #receive}
H A DPlainDatagramSocketImpl.java168 public void receive(DatagramPacket pack) throws IOException { method in class:PlainDatagramSocketImpl
/libcore/luni/src/main/java/java/nio/channels/
H A DDatagramChannel.java36 * is the reduced effort of security checks during send and receive. When
132 * in order to send and receive datagrams.
158 * This method executes the same security checks as the receive method of
178 public abstract SocketAddress receive(ByteBuffer target) throws IOException; method in class:DatagramChannel
/libcore/luni/src/main/java/java/nio/
H A DDatagramChannelImpl.java160 public SocketAddress receive(ByteBuffer target) throws IOException { method in class:DatagramChannelImpl
172 // receive real data packet, (not peek)
541 * @see java.net.DatagramSocket#receive(java.net.DatagramPacket)
544 public void receive(DatagramPacket packet) throws IOException { method in class:DatagramChannelImpl.DatagramSocketAdapter
548 super.receive(packet);

Completed in 439 milliseconds