HomeSort by relevance Sort by last modified time
    Searched refs:SocketException (Results 1 - 25 of 102) sorted by null

1 2 3 4 5

  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/
SocketExceptionTest.java 20 import java.net.SocketException;
25 * @tests java.net.SocketException#SocketException()
30 throw new SocketException();
33 } catch (SocketException e) {
39 * @tests java.net.SocketException#SocketException(java.lang.String)
44 throw new SocketException("Some error message");
47 } catch (SocketException e) {
DatagramSocketImplTest.java 27 import java.net.SocketException;
60 protected void bind(int port, InetAddress addr) throws SocketException {
70 protected void create() throws SocketException {
74 public Object getOption(int optID) throws SocketException {
131 public void setOption(int optID, Object val) throws SocketException {
145 public void test_connect(InetAddress inetAddr, int port ) throws SocketException{
  /libcore/luni/src/main/java/java/net/
SocketException.java 23 * This {@code SocketException} may be thrown during socket creation or setting
26 public class SocketException extends IOException {
33 public SocketException() {
39 public SocketException(String detailMessage) {
46 public SocketException(Throwable cause) {
54 public SocketException(String detailMessage, Throwable cause) {
SocketOptions.java 147 * @throws SocketException
150 public Object getOption(int optID) throws SocketException;
159 * @throws SocketException
162 public void setOption(int optID, Object val) throws SocketException;
DatagramSocket.java 49 private SocketException pendingConnectException;
59 * @throws SocketException
62 public DatagramSocket() throws SocketException {
73 * @throws SocketException
76 public DatagramSocket(int aPort) throws SocketException {
90 * @throws SocketException
93 public DatagramSocket(int aPort, InetAddress addr) throws SocketException {
128 synchronized void createSocket(int aPort, InetAddress addr) throws SocketException {
135 } catch (SocketException e) {
207 public synchronized int getReceiveBufferSize() throws SocketException {
    [all...]
BindException.java 25 * more robust to catch the superclass {@code SocketException}.
27 public class BindException extends SocketException {
ConnectException.java 25 * more robust to catch the superclass {@code SocketException}.
27 public class ConnectException extends SocketException {
NoRouteToHostException.java 26 * more robust to catch the superclass {@code SocketException}.
28 public class NoRouteToHostException extends SocketException {
PortUnreachableException.java 25 * more robust to catch the superclass {@code SocketException}.
27 public class PortUnreachableException extends SocketException {
MulticastSocket.java 75 * @throws SocketException if an error occurs.
77 public InetAddress getInterface() throws SocketException {
105 * @throws SocketException if an error occurs.
107 public NetworkInterface getNetworkInterface() throws SocketException {
212 throw new SocketException("No address associated with interface: " + netInterface);
222 throw new SocketException("Group address has no address: " + groupAddress);
266 * @throws SocketException if an error occurs.
268 public void setInterface(InetAddress address) throws SocketException {
276 throw new SocketException("Address not associated with an interface: " + address);
286 * @throws SocketException if an error occurs
    [all...]
Socket.java 282 * @throws SocketException
285 protected Socket(SocketImpl impl) throws SocketException {
341 throw new SocketException("Socket input is shutdown");
349 public boolean getKeepAlive() throws SocketException {
383 throw new SocketException("Socket output is shutdown");
403 public int getSoLinger() throws SocketException {
417 public synchronized int getReceiveBufferSize() throws SocketException {
425 public synchronized int getSendBufferSize() throws SocketException {
433 public synchronized int getSoTimeout() throws SocketException {
441 public boolean getTcpNoDelay() throws SocketException {
    [all...]
ServerSocket.java 122 throw new SocketException("Socket is not bound");
220 throw new SocketException("Factory already set");
233 * @throws SocketException
236 public synchronized void setSoTimeout(int timeout) throws SocketException {
311 throw new SocketException("Host is unresolved: " + inetAddr.getHostName());
360 private void checkOpen() throws SocketException {
362 throw new SocketException("Socket is closed");
371 * @throws SocketException
374 public void setReuseAddress(boolean reuse) throws SocketException {
383 * @throws SocketException
    [all...]
NetworkInterface.java 103 * @throws SocketException if an error occurs.
106 public static NetworkInterface getByName(String interfaceName) throws SocketException {
124 List<InetAddress> addresses, List<InterfaceAddress> interfaceAddresses) throws SocketException {
160 List<InterfaceAddress> interfaceAddresses) throws SocketException {
198 private static int readIntFile(String path) throws SocketException {
211 private static SocketException rethrowAsSocketException(Exception ex) throws SocketException {
212 SocketException result = new SocketException();
221 * @throws SocketException if an error occurs
    [all...]
  /libcore/dalvik/src/main/java/dalvik/system/
SocketTagger.java 21 import java.net.SocketException;
31 @Override public void tag(FileDescriptor socketDescriptor) throws SocketException {}
32 @Override public void untag(FileDescriptor socketDescriptor) throws SocketException {}
40 public abstract void tag(FileDescriptor socketDescriptor) throws SocketException;
50 public abstract void untag(FileDescriptor socketDescriptor) throws SocketException;
52 public final void tag(Socket socket) throws SocketException {
56 public final void untag(Socket socket) throws SocketException {
  /libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
OpenSSLSocketImplWrapper.java 24 import java.net.SocketException;
37 throw new SocketException("Socket is not connected.");
84 public void setSoLinger(boolean on, int linger) throws SocketException {
89 public void setTcpNoDelay(boolean on) throws SocketException {
94 public void setReuseAddress(boolean on) throws SocketException {
99 public void setKeepAlive(boolean on) throws SocketException {
104 public void setTrafficClass(int tos) throws SocketException {
109 public void setSoTimeout(int to) throws SocketException {
115 public void setSendBufferSize(int size) throws SocketException {
120 public void setReceiveBufferSize(int size) throws SocketException {
    [all...]
SSLSocketWrapper.java 25 import java.net.SocketException;
38 throw new SocketException("Socket is not connected.");
104 public void setSoLinger(boolean on, int linger) throws SocketException {
109 public void setTcpNoDelay(boolean on) throws SocketException {
114 public void setReuseAddress(boolean on) throws SocketException {
119 public void setKeepAlive(boolean on) throws SocketException {
124 public void setTrafficClass(int tos) throws SocketException {
129 public void setSoTimeout(int to) throws SocketException {
134 public void setSendBufferSize(int size) throws SocketException {
139 public void setReceiveBufferSize(int size) throws SocketException {
    [all...]
  /libcore/luni/src/main/java/javax/net/ssl/
DefaultSSLServerSocketFactory.java 23 import java.net.SocketException;
49 throw new SocketException(errMessage);
54 throw new SocketException(errMessage);
60 throw new SocketException(errMessage);
DefaultSSLSocketFactory.java 23 import java.net.SocketException;
52 throw new SocketException(errMessage);
57 throw new SocketException(errMessage);
63 throw new SocketException(errMessage);
68 throw new SocketException(errMessage);
74 throw new SocketException(errMessage);
  /libcore/luni/src/main/java/libcore/io/
ErrnoException.java 20 import java.net.SocketException;
62 public SocketException rethrowAsSocketException() throws SocketException {
63 throw new SocketException(getMessage(), this);
  /external/apache-harmony/x-net/src/test/impl/java.injected/javax/net/ssl/
DefaultSSLSocketFactoryTest.java 24 import java.net.SocketException;
43 fail("No expected SocketException");
44 } catch (SocketException e) {
58 fail("No expected SocketException");
59 } catch (SocketException e) {
72 fail("No expected SocketException");
73 } catch (SocketException e) {
88 fail("No expected SocketException");
89 } catch (SocketException e) {
118 fail("No expected SocketException");
    [all...]
DefaultSSLServerSocketFactoryTest.java 23 import java.net.SocketException;
41 fail("No expected SocketException");
42 } catch (SocketException e) {
55 fail("No expected SocketException");
56 } catch (SocketException e) {
69 fail("No expected SocketException");
70 } catch (SocketException e) {
  /libcore/luni/src/main/java/javax/net/
ServerSocketFactory.java 23 import java.net.SocketException;
54 * SocketException} is thrown.
62 throw new SocketException("Unbound server sockets not implemented");
  /external/apache-harmony/luni/src/test/api/unix/org/apache/harmony/luni/tests/java/net/
UnixSocketTest.java 28 import java.net.SocketException;
63 fail("Should throw SocketException");
64 } catch (SocketException e) {
71 fail("Should throw SocketException");
72 } catch (SocketException e) {
77 fail("Should throw SocketException");
78 } catch (SocketException e) {
114 } catch (SocketException e) {
  /libcore/luni/src/test/java/libcore/java/net/
OldUnixSocketTest.java 28 import java.net.SocketException;
59 fail("Should throw SocketException; got i=" + i);
60 } catch (SocketException e) {
67 fail("Should throw SocketException");
68 } catch (SocketException e) {
73 fail("Should throw SocketException");
74 } catch (SocketException e) {
110 } catch (SocketException e) {
OldSocketImplFactoryTest.java 10 import java.net.SocketException;
42 fail("SocketException was not thrown.");
43 } catch(SocketException se) {
49 fail("SocketException was not thrown.");
50 } catch(SocketException se) {
58 } catch (SocketException e) {
59 fail("SocketException was thrown.");
170 public Object getOption(int arg0) throws SocketException {
174 public void setOption(int arg0, Object arg1) throws SocketException {

Completed in 277 milliseconds

1 2 3 4 5