Home
last modified time | relevance | path

Searched refs:SocketAddress (Results 1 – 25 of 96) sorted by relevance

1234

/libcore/ojluni/src/main/java/java/nio/channels/
DDatagramChannel.java32 import java.net.SocketAddress;
215 public abstract DatagramChannel bind(SocketAddress local) in bind()
297 public abstract DatagramChannel connect(SocketAddress remote) in connect()
334 public abstract SocketAddress getRemoteAddress() throws IOException; in getRemoteAddress()
398 public abstract SocketAddress receive(ByteBuffer dst) throws IOException; in receive()
463 public abstract int send(ByteBuffer src, SocketAddress target) in send()
590 public abstract SocketAddress getLocalAddress() throws IOException; in getLocalAddress()
DSocketChannel.java31 import java.net.SocketAddress;
184 public static SocketChannel open(SocketAddress remote) in open()
238 public abstract SocketChannel bind(SocketAddress local) in bind()
389 public abstract boolean connect(SocketAddress remote) throws IOException; in connect()
459 public abstract SocketAddress getRemoteAddress() throws IOException; in getRemoteAddress()
524 public abstract SocketAddress getLocalAddress() throws IOException; in getLocalAddress()
DServerSocketChannel.java31 import java.net.SocketAddress;
154 public final ServerSocketChannel bind(SocketAddress local) in bind()
198 public abstract ServerSocketChannel bind(SocketAddress local, int backlog) in bind()
290 public abstract SocketAddress getLocalAddress() throws IOException; in getLocalAddress()
DAsynchronousSocketChannel.java33 import java.net.SocketAddress;
209 public abstract AsynchronousSocketChannel bind(SocketAddress local) in bind()
280 public abstract SocketAddress getRemoteAddress() throws IOException; in getRemoteAddress()
324 public abstract <A> void connect(SocketAddress remote, in connect()
355 public abstract Future<Void> connect(SocketAddress remote); in connect()
686 public abstract SocketAddress getLocalAddress() throws IOException; in getLocalAddress()
DAsynchronousServerSocketChannel.java30 import java.net.SocketAddress;
190 public final AsynchronousServerSocketChannel bind(SocketAddress local) in bind()
231 public abstract AsynchronousServerSocketChannel bind(SocketAddress local, int backlog) in bind()
327 public abstract SocketAddress getLocalAddress() throws IOException; in getLocalAddress()
DNetworkChannel.java29 import java.net.SocketAddress;
87 NetworkChannel bind(SocketAddress local) throws IOException; in bind()
104 SocketAddress getLocalAddress() throws IOException; in getLocalAddress()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DMockDatagramChannel.java24 import java.net.SocketAddress;
50 public DatagramChannel connect(SocketAddress arg0) throws IOException { in connect()
60 public SocketAddress receive(ByteBuffer arg0) throws IOException { in receive()
65 public int send(ByteBuffer arg0, SocketAddress arg1) throws IOException { in send()
100 public SocketAddress getRemoteAddress() throws IOException { in getRemoteAddress()
115 public DatagramChannel bind(SocketAddress local) throws IOException { in bind()
136 public SocketAddress getLocalAddress() throws IOException { in getLocalAddress()
DMockSocketChannel.java22 import java.net.SocketAddress;
52 public boolean connect(SocketAddress arg0) throws IOException { in connect()
90 public SocketAddress getRemoteAddress() throws IOException { in getRemoteAddress()
111 public SocketChannel bind(SocketAddress local) throws IOException { in bind()
126 public SocketAddress getLocalAddress() throws IOException { in getLocalAddress()
DMockServerSocketChannel.java22 import java.net.SocketAddress;
60 public ServerSocketChannel bind(SocketAddress local, int backlog) { in bind()
75 public SocketAddress getLocalAddress() throws IOException { in getLocalAddress()
/libcore/ojluni/src/main/java/sun/net/
DSocksProxy.java29 import java.net.SocketAddress;
37 private SocksProxy(SocketAddress addr, int version) { in SocksProxy()
42 public static SocksProxy create(SocketAddress addr, int version) { in create()
/libcore/ojluni/src/main/java/sun/nio/ch/
DDatagramSocketAdaptor.java69 private void connectInternal(SocketAddress remote) in connectInternal()
87 public void bind(SocketAddress local) throws SocketException { in bind()
105 public void connect(SocketAddress remote) throws SocketException { in connect()
174 private SocketAddress receive(ByteBuffer bb) throws IOException { in receive()
182 SocketAddress sender; in receive()
216 SocketAddress sender = receive(bb); in receive()
229 SocketAddress local = dc.localAddress(); in getLocalAddress()
248 SocketAddress local = dc.getLocalAddress(); in getLocalPort()
404 protected void joinGroup(SocketAddress mcastaddr,
407 protected void leaveGroup(SocketAddress mcastaddr,
/libcore/luni/src/test/java/libcore/java/net/
DOldProxyTest.java20 import java.net.SocketAddress;
25 private SocketAddress address = new InetSocketAddress("127.0.0.1", 1234);
40 SocketAddress address1 = new InetSocketAddress("127.0.0.1", 1234); in test_hashCode()
52 SocketAddress address2 = new InetSocketAddress("127.0.0.1", 1235); in test_hashCode()
/libcore/ojluni/annotations/hiddenapi/java/net/
DProxy.java38 public Proxy(java.net.Proxy.Type type, java.net.SocketAddress sa) { in Proxy()
46 public java.net.SocketAddress address() { in address()
68 private java.net.SocketAddress sa;
DDatagramSocket.java42 public DatagramSocket(java.net.SocketAddress bindaddr) throws java.net.SocketException { in DatagramSocket()
71 public synchronized void bind(java.net.SocketAddress addr) throws java.net.SocketException { in bind()
83 public void connect(java.net.SocketAddress addr) throws java.net.SocketException { in connect()
107 public java.net.SocketAddress getRemoteSocketAddress() { in getRemoteSocketAddress()
111 public java.net.SocketAddress getLocalSocketAddress() { in getLocalSocketAddress()
DSocket.java79 java.net.SocketAddress localAddr, in Socket()
105 public void connect(java.net.SocketAddress endpoint) throws java.io.IOException { in connect()
109 public void connect(java.net.SocketAddress endpoint, int timeout) throws java.io.IOException { in connect()
113 public void bind(java.net.SocketAddress bindpoint) throws java.io.IOException { in bind()
153 public java.net.SocketAddress getRemoteSocketAddress() { in getRemoteSocketAddress()
157 public java.net.SocketAddress getLocalSocketAddress() { in getLocalSocketAddress()
/libcore/ojluni/annotations/mmodule/java/net/
DDatagramSocket.annotated.java40 public DatagramSocket(java.net.SocketAddress bindaddr) throws java.net.SocketException { throw new … in DatagramSocket()
46 public synchronized void bind(java.net.SocketAddress addr) throws java.net.SocketException { throw … in bind()
50 public void connect(java.net.SocketAddress addr) throws java.net.SocketException { throw new Runtim… in connect()
62 public java.net.SocketAddress getRemoteSocketAddress() { throw new RuntimeException("Stub!"); } in getRemoteSocketAddress()
64 public java.net.SocketAddress getLocalSocketAddress() { throw new RuntimeException("Stub!"); } in getLocalSocketAddress()
DSocket.annotated.java58 public void connect(java.net.SocketAddress endpoint) throws java.io.IOException { throw new Runtime… in connect()
60 public void connect(java.net.SocketAddress endpoint, int timeout) throws java.io.IOException { thro… in connect()
62 public void bind(java.net.SocketAddress bindpoint) throws java.io.IOException { throw new RuntimeEx… in bind()
72 public java.net.SocketAddress getRemoteSocketAddress() { throw new RuntimeException("Stub!"); } in getRemoteSocketAddress()
74 public java.net.SocketAddress getLocalSocketAddress() { throw new RuntimeException("Stub!"); } in getLocalSocketAddress()
DServerSocket.annotated.java43 public void bind(java.net.SocketAddress endpoint) throws java.io.IOException { throw new RuntimeExc… in bind()
45 public void bind(java.net.SocketAddress endpoint, int backlog) throws java.io.IOException { throw n… in bind()
51 public java.net.SocketAddress getLocalSocketAddress() { throw new RuntimeException("Stub!"); } in getLocalSocketAddress()
/libcore/ojluni/src/main/java/java/net/
DProxy.java61 private SocketAddress sa;
93 public Proxy(Type type, SocketAddress sa) { in Proxy()
116 public SocketAddress address() { in address()
DDatagramPacket.java152 public DatagramPacket(byte buf[], int offset, int length, SocketAddress address) { in DatagramPacket()
193 public DatagramPacket(byte buf[], int length, SocketAddress address) { in DatagramPacket()
337 public synchronized void setSocketAddress(SocketAddress address) { in setSocketAddress()
355 public synchronized SocketAddress getSocketAddress() { in getSocketAddress()
DSocket.java218 this(InetAddress.getAllByName(host), port, (SocketAddress) null, true); in Socket()
250 this(nonNullAddress(address), port, (SocketAddress) null, true); in Socket()
382 this(InetAddress.getAllByName(host), port, (SocketAddress) null, stream); in Socket()
436 private Socket(InetAddress[] addresses, int port, SocketAddress localAddr, in Socket()
508 clazz.getDeclaredMethod("connect", SocketAddress.class, int.class); in checkOldImpl()
569 public void connect(SocketAddress endpoint) throws IOException { in connect()
590 public void connect(SocketAddress endpoint, int timeout) throws IOException { in connect()
655 public void bind(SocketAddress bindpoint) throws IOException { in bind()
825 public SocketAddress getRemoteSocketAddress() { in getRemoteSocketAddress()
861 public SocketAddress getLocalSocketAddress() { in getLocalSocketAddress()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DProxyTest.java20 import java.net.SocketAddress;
26 private SocketAddress address = new InetSocketAddress("127.0.0.1", 1234);
142 SocketAddress address1 = new InetSocketAddress("127.0.0.1", 1234); in test_equalsLjava_lang_Object_Equals()
143 SocketAddress address2 = new InetSocketAddress("127.0.0.1", 1234); in test_equalsLjava_lang_Object_Equals()
168 SocketAddress address1 = new InetSocketAddress("127.0.0.1", 1234); in test_equalsLjava_lang_Object_NotEquals()
169 SocketAddress address2 = new InetSocketAddress("127.0.0.1", 1235); in test_equalsLjava_lang_Object_NotEquals()
DDatagramSocketImplTest.java26 import java.net.SocketAddress;
101 protected void joinGroup(SocketAddress addr, NetworkInterface netInterface) in joinGroup()
112 protected void leaveGroup(SocketAddress addr, NetworkInterface netInterface) in leaveGroup()
/libcore/luni/src/main/java/android/system/
DNetlinkSocketAddress.java21 import java.net.SocketAddress;
33 public final class NetlinkSocketAddress extends SocketAddress {
/libcore/luni/src/test/java/libcore/java/nio/channels/
DOldSocketChannelTest.java24 import java.net.SocketAddress;
184 SocketAddress newTypeAddress = new SubSocketAddress(); in testOpenSocketAddress()
192 SocketAddress unresolvedAddress = in testOpenSocketAddress()
372 public boolean connect(SocketAddress address) throws IOException { in connect()
415 public SocketAddress getRemoteAddress() throws IOException { in getRemoteAddress()
435 public SocketChannel bind(SocketAddress local) throws IOException { in bind()
450 public SocketAddress getLocalAddress() throws IOException { in getLocalAddress()
455 class SubSocketAddress extends SocketAddress {

1234