Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| J2ME CDC
PREV NEXT | FRAMES NO FRAMES

## Uses of Class
java.net.SocketException

Packages that use SocketException
java.net |

Uses of SocketException in java.net

Subclasses of SocketException in java.net
`class` | `ConnectException` Signals that an error occurred while attempting to connect a socket to a remote address and port.

Methods in java.net that throw SocketException
`void` | `DatagramSocket.setSoTimeout(int timeout)` Enable/disable SO_TIMEOUT with the specified timeout, in milliseconds.
`int` | `DatagramSocket.getSoTimeout()` Retrive setting for SO_TIMEOUT.
`void` | `DatagramSocket.setSendBufferSize(int size)` Sets the SO_SNDBUF option to the specified value for this `DatagramSocket`.
`int` | `DatagramSocket.getSendBufferSize()` Get value of the SO_SNDBUF option for this `DatagramSocket`, that is the buffer size used by the platform for output on this `DatagramSocket`.
`void` | `DatagramSocket.setReceiveBufferSize(int size)` Sets the SO_RCVBUF option to the specified value for this `DatagramSocket`.
`int` | `DatagramSocket.getReceiveBufferSize()` Get value of the SO_RCVBUF option for this `DatagramSocket`, that is the buffer size used by the platform for input on this `DatagramSocket`.
`void` | `Socket.setTcpNoDelay(boolean on)` Enable/disable TCP_NODELAY (disable/enable Nagle's algorithm).
`boolean` | `Socket.getTcpNoDelay()` Tests if TCP_NODELAY is enabled.
`void` | `Socket.setSoLinger(boolean on, int linger)` Enable/disable SO_LINGER with the specified linger time in seconds.
`int` | `Socket.getSoLinger()` Returns setting for SO_LINGER.
`void` | `Socket.setSoTimeout(int timeout)` Enable/disable SO_TIMEOUT with the specified timeout, in milliseconds.
`int` | `Socket.getSoTimeout()` Returns setting for SO_TIMEOUT.
`void` | `Socket.setSendBufferSize(int size)` Sets the SO_SNDBUF option to the specified value for this `Socket`.
`int` | `Socket.getSendBufferSize()` Get value of the SO_SNDBUF option for this `Socket`, that is the buffer size used by the platform for output on this `Socket`.
`void` | `Socket.setReceiveBufferSize(int size)` Sets the SO_RCVBUF option to the specified value for this `Socket`.
`int` | `Socket.getReceiveBufferSize()` Gets the value of the SO_RCVBUF option for this `Socket`, that is the buffer size used by the platform for input on this `Socket`.
`void` | `Socket.setKeepAlive(boolean on)` Enable/disable SO_KEEPALIVE.
`boolean` | `Socket.getKeepAlive()` Tests if SO_KEEPALIVE is enabled.
`void` | `MulticastSocket.setInterface(InetAddress inf)` Set the multicast network interface used by methods whose behavior would be affected by the value of the network interface.
`InetAddress` | `MulticastSocket.getInterface()` Retrieve the address of the network interface used for multicast packets.
`void` | `ServerSocket.setSoTimeout(int timeout)` Enable/disable SO_TIMEOUT with the specified timeout, in milliseconds.
`protected abstract void` | `DatagramSocketImpl.create()` Creates a datagram socket.
`protected abstract void` | `DatagramSocketImpl.bind(int lport, InetAddress laddr)` Binds a datagram socket to a local port and address.
`void` | `SocketOptions.setOption(int optID, Object value)` Enable/disable the option specified by optID.
`Object` | `SocketOptions.getOption(int optID)` Fetch the value of an option.

Constructors in java.net that throw SocketException
`DatagramSocket()` Constructs a datagram socket and binds it to any available port on the local host machine.
`DatagramSocket(int port)` Constructs a datagram socket and binds it to the specified port on the local host machine.
`DatagramSocket(int port, InetAddress laddr)` Creates a datagram socket, bound to the specified local address.
`Socket(SocketImpl impl)` Creates an unconnected Socket with a user-specified SocketImpl.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| J2ME CDC
PREV NEXT | FRAMES NO FRAMES

Java is a trademark or registred trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road,
Palo, Alto, California, 94303, U.S.A All Rights Reserved.