Searched refs:send (Results 1 - 25 of 26) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/net/
H A DOldDatagramPacketTest.java38 ss.send(packet);
50 cs.send(packet);
H A DMulticastSocketTest.java57 ds.send(p);
61 ds.send(p);
H A DDatagramSocketTest.java82 // Confirm send() throws the pendingConnectException.
84 s.send(p);
160 otherSocket.send(new DatagramPacket(data, data.length));
178 srcSocket.send(new DatagramPacket(data, data.length));
207 srcDs.send(new DatagramPacket(new byte[16], 16));
208 srcDs.send(new DatagramPacket(new byte[16], 16));
H A DOldAndroidDatagramTest.java74 socket.send(packet);
124 // Setup the reflector, so we have a partner to send to
141 socket.send(packet);
H A DOldDatagramSocketImplFactoryTest.java187 protected void send(DatagramPacket arg0) throws IOException { method in class:OldDatagramSocketImplFactoryTest.TestDatagramSocketImpl
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
H A DDatagramSocketTest.java76 serverSocket.send(rdp);
142 ds.send(dp);
173 DatagramPacket send = new DatagramPacket(new byte[10], 10, localHost,
175 ds.send(send);
211 final DatagramPacket send = new DatagramPacket(sendBytes, sendBytes.length);
214 ds.send(send);
219 assertPacketDataEquals(send, receive);
224 // Validate that once connected we cannot send t
435 protected void send(DatagramPacket arg0) throws IOException { method in class:DatagramSocketTest.TestDatagramSocketImpl
[all...]
H A DDatagramSocketImplTest.java133 protected void send(DatagramPacket pack) throws IOException { method in class:MockDatagramSocketImpl
H A DMulticastSocketTest.java250 sendingSocket.send(sdp, (byte) 10 /* ttl */);
347 sendingSocket.send(sdp);
373 sendingSocket.send(sdp);
399 // they cannot send / receive multicast messages.
430 // Now send out a packet on sendingInterface. We should only see the packet if we send
436 sendingSocket.send(sdp);
509 mss.send(sdp, (byte) 10 /* ttl */);
634 sendingSocket.send(sdp, (byte) 10 /* ttl */);
640 assertEquals("Failed to send dat
[all...]
H A DDatagramPacketTest.java140 socket.send(packet);
/libcore/ojluni/src/main/java/java/nio/channels/
H A DDatagramChannel.java43 * connected. A datagram channel need not be connected in order for the {@link #send
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
67 * <td> The size of the socket send buffer </td>
413 * java.net.DatagramSocket#send send} method of the {@link
463 public abstract int send(ByteBuffer src, SocketAddress target) method in class:DatagramChannel
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DDatagramSocketAdaptor.java139 public void send(DatagramPacket p) throws IOException { method in class:DatagramSocketAdaptor
150 // Legacy DatagramSocket will send in this case
159 dc.send(bb, p.getSocketAddress());
163 dc.send(bb, p.getSocketAddress());
305 throw new IllegalArgumentException("Invalid send size");
382 protected void send(DatagramPacket p) throws IOException {}
H A DDatagramChannelImpl.java467 public int send(ByteBuffer src, SocketAddress target) method in class:DatagramChannelImpl
510 n = send(fd, src, isa);
527 private int send(FileDescriptor fd, ByteBuffer src, InetSocketAddress target) method in class:DatagramChannelImpl
/libcore/ojluni/src/main/native/
H A DSocketChannelImpl.c95 int n = send(fdval(env, fdo), (const void*)&b, 1, MSG_OOB);
H A DDatagramDispatcher.c103 int result = send(fd, buf, len, 0);
H A Dlinux_close.cpp142 BLOCKING_IO_RETURN_INT( s, send(s, msg, len, flags) );
/libcore/luni/src/test/java/libcore/java/nio/channels/
H A DMembershipKeyTest.java109 .send(ByteBuffer.wrap(TEST_MESSAGE.getBytes()),
175 .send(ByteBuffer.wrap(TEST_MESSAGE.getBytes()),
225 .send(ByteBuffer.wrap(TEST_MESSAGE.getBytes()),
H A DDatagramChannelMulticastTest.java333 // they cannot send / receive multicast messages.
361 // Now send out a package on sendingInterface. We should only see the packet if we send
450 // send the datagram
453 dc.send(sendBuffer, new InetSocketAddress(group, localAddress.getPort()));
466 // send another datagram
469 dc.send(sendBuffer2, new InetSocketAddress(group, localAddress.getPort()));
1231 // Any datagram socket can send to a group. It does not need to have joined the group.
1247 sendingChannel.send(sendBuffer, targetAddress);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
H A DMockDatagramChannel.java65 public int send(ByteBuffer arg0, SocketAddress arg1) throws IOException { method in class:MockDatagramChannel
H A DDatagramChannelTest.java1000 // Test for send(): Behavior without server.
1006 assertEquals(CAPACITY_NORMAL, this.channel1.send(writeBuf, ipAddr));
1017 assertEquals(CAPACITY_NORMAL, this.channel1.send(writeBuf, ipAddr));
1025 * Test method for 'DatagramChannelImpl.send(ByteBuffer, SocketAddress)'
1041 assertEquals(0, this.channel1.send(writeBuf, datagramSocket1Address));
1043 channel1.send(writeBuf, datagramSocket2Address);
1054 assertEquals(0, this.channel1.send(writeBuf, datagramSocket1Address));
1056 channel1.send(writeBuf, datagramSocket2Address);
1082 channel1.send(null, datagramSocket2Address);
1108 channel1.send(writeBu
[all...]
/libcore/ojluni/src/main/java/java/net/
H A DDatagramSocketImpl.java88 * destination address to send the packet to.
96 protected abstract void send(DatagramPacket p) throws IOException; method in class:DatagramSocketImpl
107 * send or receive may throw a PortUnreachableException.
H A DMulticastSocket.java47 * // join a Multicast group and send the group salutations
55 * s.send(hi);
68 * be a member of the multicast group to send messages to it.
182 * send(packet,ttl).
634 * One does not need to be the member of the group to send
643 * method doesn't allow the send.
649 * mcastSocket.send(p);
653 * @see DatagramSocket#send
659 public void send(DatagramPacket p, byte ttl) method in class:MulticastSocket
663 checkAddress(p.getAddress(), "send");
[all...]
H A DDatagramSocket.java437 * send or receive may throw a PortUnreachableException. Note, there is no
454 * {@link #send send} <b>will not perform any security checks</b>
456 * and the socket's address and port. On a send operation, if the
460 * to send packets.
661 * method doesn't allow the send.
677 public void send(DatagramPacket p) throws IOException { method in class:DatagramSocket
687 checkAddress (p.getAddress(), "send");
689 // check the address is ok wiht the security manager on every send.
694 // while you are trying to send th
[all...]
H A DAbstractPlainDatagramSocketImpl.java100 * destination address to send the packet to.
103 protected abstract void send(DatagramPacket p) throws IOException; method in class:AbstractPlainDatagramSocketImpl
H A DPlainDatagramSocketImpl.java114 protected void send(DatagramPacket p) throws IOException { method in class:PlainDatagramSocketImpl
/libcore/luni/src/test/java/libcore/io/
H A DOsTest.java778 srcSock.send(new DatagramPacket(new byte[0], 0, ds.getLocalSocketAddress()));

Completed in 3126 milliseconds

12