Home
last modified time | relevance | path

Searched refs:receive (Results 1 – 25 of 28) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DDatagramSocketTest.java74 serverSocket.receive(rdp); in run()
177 DatagramPacket receive = new DatagramPacket(new byte[20], 20); in testConnect_connectToSelf() local
179 ds.receive(receive); in testConnect_connectToSelf()
182 assertEquals(10, receive.getLength()); in testConnect_connectToSelf()
183 assertEquals(localHost, receive.getAddress()); in testConnect_connectToSelf()
212 final DatagramPacket receive = new DatagramPacket(new byte[20], 20); in testConnect_echoServer() local
216 ds.receive(receive); in testConnect_echoServer()
218 assertEquals(sendBytes.length, receive.getLength()); in testConnect_echoServer()
219 assertPacketDataEquals(send, receive); in testConnect_echoServer()
220 assertEquals(Inet6Address.LOOPBACK, receive.getAddress()); in testConnect_echoServer()
[all …]
DMulticastSocketTest.java254 receivingSocket.receive(rdp); in test_joinGroupLjava_net_InetAddress()
348 receivingSocket.receive(rdp); in check_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface()
375 receivingSocket.receive(rdp); in check_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface()
437 receivingSocket.receive(rdp); in joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface()
624 receivingSocket.receive(rdp); in check_sendLjava_net_DatagramPacketB()
731 receivingSocket.receive(rdp); in check_setNetworkInterfaceLjava_net_NetworkInterface()
847 socket.receive(recvDatagram); in check_setLoopbackModeSendReceive()
DDatagramSocketImplTest.java128 protected void receive(DatagramPacket pack) throws IOException { in receive() method in MockDatagramSocketImpl
/libcore/ojluni/src/main/java/sun/nio/ch/
DDatagramSocketAdaptor.java174 private SocketAddress receive(ByteBuffer bb) throws IOException { in receive() method in DatagramSocketAdaptor
176 return dc.receive(bb); in receive()
183 if ((sender = dc.receive(bb)) != null) in receive()
193 if ((sender = dc.receive(bb)) != null) in receive()
207 public void receive(DatagramPacket p) throws IOException { in receive() method in DatagramSocketAdaptor
216 SocketAddress sender = receive(bb); in receive()
388 protected void receive(DatagramPacket p) throws IOException {}
DDatagramChannelImpl.java361 public SocketAddress receive(ByteBuffer dst) throws IOException { in receive() method in DatagramChannelImpl
383 n = receive(fd, dst); in receive()
391 n = receive(fd, bb); in receive()
422 private int receive(FileDescriptor fd, ByteBuffer dst) in receive() method in DatagramChannelImpl
800 } while (receive(tmpBuf) != null); in connect()
/libcore/ojluni/src/main/java/java/io/
DPipedWriter.java124 sink.receive(c); in write()
150 sink.receive(cbuf, off, len); in write()
DPipedOutputStream.java122 sink.receive(b); in write()
149 sink.receive(b, off, len); in write()
DPipedReader.java170 synchronized void receive(int c) throws IOException { in receive() method in PipedReader
208 synchronized void receive(char c[], int off, int len) throws IOException { in receive() method in PipedReader
210 receive(c[off++]); in receive()
DPipedInputStream.java203 protected synchronized void receive(int b) throws IOException { in receive() method in PipedInputStream
228 synchronized void receive(byte b[], int off, int len) throws IOException { in receive() method in PipedInputStream
/libcore/luni/src/test/java/libcore/java/net/
DOldDatagramPacketTest.java37 ss.receive(packet); in test_getPort()
52 cs.receive(packet); in test_getPort()
DOldAndroidDatagramTest.java59 socket.receive(packet); in run()
150 socket.receive(packet); in testDatagram()
DMulticastSocketTest.java71 mcSock.receive(recvPacket); in assertRecv()
DOldDatagramSocketImplFactoryTest.java183 protected void receive(DatagramPacket arg0) throws IOException { in receive() method in OldDatagramSocketImplFactoryTest.TestDatagramSocketImpl
DSocketTimeoutTest.java176 s.receive(new DatagramPacket(EmptyArray.BYTE, 0)); in testDatagramSocketReceive()
DConcurrentCloseTest.java167 s.receive(p); in test_recv()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DDatagramChannelTest.java673 this.channel1.receive(null); in testReceive_UnconnectedNull()
689 this.channel1.receive(dst); in testReceive_UnconnectedReadonly()
703 assertNull(this.channel1.receive(dst)); in testReceive_UnconnectedBufEmpty()
712 assertNull(dc.receive(dst)); in testReceive_UnboundBufZero()
726 assertNull(dc.receive(dst)); in testReceive_UnboundBufNotEmpty()
741 assertNull(dc.receive(dst)); in testReceive_UnboundBufFull()
755 assertNull(this.channel1.receive(dst)); in testReceive_UnconnectedClose()
771 this.channel1.receive(null); in testReceive_UnconnectedCloseNull()
789 this.channel1.receive(dst); in testReceive_UnconnectedCloseReadonly()
851 assertNull(this.channel1.receive(dst)); in testReceive_NonBlockNoServerBufNotEmpty()
[all …]
DMockDatagramChannel.java60 public SocketAddress receive(ByteBuffer arg0) throws IOException { in receive() method in MockDatagramChannel
/libcore/luni/src/test/java/libcore/java/nio/channels/
DMembershipKeyTest.java114 client.receive(buffer); in check_drop()
180 client.receive(buffer); in test_blockWithJoinWithoutSource()
230 client.receive(buffer); in test_unblockWithJoinWithoutSource()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DPipedInputStreamTest.java311 public void receive(int oneByte) throws IOException { in receive() method in PipedInputStreamTest.PipedInputStreamWithPublicReceive
312 super.receive(oneByte); in receive()
325 pis.receive(1); in test_receive_failsIfWriterClosed()
/libcore/ojluni/src/main/java/java/net/
DDatagramSocket.java756 public synchronized void receive(DatagramPacket p) throws IOException { in receive() method in DatagramSocket
794 getImpl().receive(tmp); in receive()
834 getImpl().receive(tmp); in receive()
847 getImpl().receive(p); in receive()
DAbstractPlainDatagramSocketImpl.java162 protected synchronized void receive(DatagramPacket p) in receive() method in AbstractPlainDatagramSocketImpl
/libcore/ojluni/src/main/java/java/nio/channels/
DDatagramChannel.java398 public abstract SocketAddress receive(ByteBuffer dst) throws IOException; in receive() method in DatagramChannel
/libcore/ojluni/annotations/mmodule/java/net/
DDatagramSocket.annotated.java68 public synchronized void receive(java.net.DatagramPacket p) throws java.io.IOException { throw new … in receive() method in DatagramSocket
/libcore/expectations/
Dvirtualdeviceknownfailures.txt10 * VPC network can only send to IPv4 destinations and only receive traffic from
/libcore/ojluni/annotations/hiddenapi/java/net/
DDatagramSocket.java119 public synchronized void receive(java.net.DatagramPacket p) throws java.io.IOException { in receive() method in DatagramSocket

12