Home
last modified time | relevance | path

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

12345

/libcore/ojluni/src/main/java/java/nio/channels/
DDatagramChannel.java32 import java.net.SocketAddress;
220 public abstract DatagramChannel bind(SocketAddress local) in bind()
311 public abstract DatagramChannel connect(SocketAddress remote) in connect()
348 public abstract SocketAddress getRemoteAddress() throws IOException; in getRemoteAddress()
412 public abstract SocketAddress receive(ByteBuffer dst) throws IOException; in receive()
487 public abstract int send(ByteBuffer src, SocketAddress target) in send()
614 public abstract SocketAddress getLocalAddress() throws IOException; in getLocalAddress()
DSocketChannel.java31 import java.net.SocketAddress;
189 public static SocketChannel open(SocketAddress remote) in open()
243 public abstract SocketChannel bind(SocketAddress local) in bind()
394 public abstract boolean connect(SocketAddress remote) throws IOException; in connect()
464 public abstract SocketAddress getRemoteAddress() throws IOException; in getRemoteAddress()
529 public abstract SocketAddress getLocalAddress() throws IOException; in getLocalAddress()
DServerSocketChannel.java31 import java.net.SocketAddress;
159 public final ServerSocketChannel bind(SocketAddress local) in bind()
203 public abstract ServerSocketChannel bind(SocketAddress local, int backlog) in bind()
295 public abstract SocketAddress getLocalAddress() throws IOException; in getLocalAddress()
DAsynchronousSocketChannel.java33 import java.net.SocketAddress;
214 public abstract AsynchronousSocketChannel bind(SocketAddress local) in bind()
285 public abstract SocketAddress getRemoteAddress() throws IOException; in getRemoteAddress()
329 public abstract <A> void connect(SocketAddress remote, in connect()
360 public abstract Future<Void> connect(SocketAddress remote); in connect()
691 public abstract SocketAddress getLocalAddress() throws IOException; in getLocalAddress()
DAsynchronousServerSocketChannel.java30 import java.net.SocketAddress;
195 public final AsynchronousServerSocketChannel bind(SocketAddress local) in bind()
236 public abstract AsynchronousServerSocketChannel bind(SocketAddress local, int backlog) in bind()
332 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/luni/src/main/java/android/system/
DStructMsghdr.java22 import java.net.SocketAddress;
36 @Nullable public SocketAddress msg_name;
50 public StructMsghdr(@Nullable SocketAddress msg_name, @NonNull ByteBuffer[] msg_iov, in StructMsghdr()
DVmSocketAddress.java19 import java.net.SocketAddress;
38 public final class VmSocketAddress extends SocketAddress {
/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,
DUnixDomainSockets.java32 import java.net.SocketAddress;
70 static UnixDomainSocketAddress getRevealedLocalAddress(SocketAddress sa) { in getRevealedLocalAddress()
90 static String getRevealedLocalAddressAsString(SocketAddress sa) { in getRevealedLocalAddressAsString()
94 static UnixDomainSocketAddress checkAddress(SocketAddress sa) { in checkAddress()
146 static int connect(FileDescriptor fd, SocketAddress sa) throws IOException { in connect()
/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/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()
/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/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()
DSocketAddress.java41 public abstract class SocketAddress implements java.io.Serializable { class
49 public SocketAddress() {} in SocketAddress() method in SocketAddress
/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()
/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 {

12345