Uses of Class java.net.SocketException

Uses in package java.net

Classes derived from java.net.SocketException

class
This exception indicates that an error occurred while attempting to bind socket to a particular port.
class
This exception indicates that an error occurred while attempting to connect to a remote host.
class
This exception indicates that there is no TCP/IP route to the requested host.
class
This exception signals that an ICMP port unreachable datagram has been received.

Constructors which throw type java.net.SocketException

DatagramPacket.DatagramPacket(byte[] buf, int offset, int length, SocketAddress address)
Initializes a new instance of DatagramPacket for transmitting packets across the network.
DatagramPacket.DatagramPacket(byte[] buf, int length, SocketAddress address)
Initializes a new instance of DatagramPacket for transmitting packets across the network.
Initializes a new instance of DatagramSocket that binds to a random port and every address on the local machine.
Initializes a new instance of DatagramSocket that binds to the specified port and every address on the local machine.
Initializes a new instance of DatagramSocket that binds to the specified local port and address.
Initializes a new instance of DatagramSocket that binds to the specified local port and address.
Initializes a new instance of Socket object without connecting to a remote host.

Methods which throw type java.net.SocketException

void
DatagramSocketImpl.bind(int lport, InetAddress laddr)
This method binds the socket to the specified local port and address.
void
Binds the socket to the given socket address.
void
Connects the socket to a host specified by address and port.
void
Connects the datagram socket to a specified socket address.
void
Creates a new datagram socket.
boolean
Checks if SO_BROADCAST is enabled
NetworkInterface
Return a network interface by its address
NetworkInterface
Returns an network interface by name
InetAddress
Returns the interface being used for multicast packets
boolean
This method returns the value of the socket level socket option SO_KEEPALIVE.
boolean
Checks if local loopback mode is enabled
NetworkInterface
Gets the local network interface which is used to send multicast messages
Enumeration
Return an Enumeration of all available network interfaces
boolean
Returns the current setting of the SO_OOBINLINE option for this socket
Object
SocketOptions.getOption(int optionId)
Returns the current setting of the specified option.
int
This method returns the value of the system level socket option SO_RCVBUF, which is used by the operating system to tune buffer sizes for data transfers.
int
This method returns the value of the system level socket option SO_RCVBUF, which is used by the operating system to tune buffer sizes for data transfers.
int
This method returns the value of the system level socket option SO_RCVBUF, which is used by the operating system to tune buffer sizes for data transfers.
boolean
Checks if SO_REUSEADDR is enabled.
boolean
Checks if the SO_REUSEADDR option is enabled
boolean
Checks if the SO_REUSEADDR option is enabled
int
This method returns the value of the system level socket option SO_SNDBUF, which is used by the operating system to tune buffer sizes for data transfers.
int
This method returns the value of the system level socket option SO_SNDBUF, which is used by the operating system to tune buffer sizes for data transfers.
int
Returns the value of the SO_LINGER option on the socket.
int
Returns the value of the socket's SO_TIMEOUT setting.
int
Returns the value of the SO_TIMEOUT option on the socket.
boolean
Tests whether or not the TCP_NODELAY option is set on the socket.
int
Returns the current traffic class
int
Returns the current traffic class
void
DatagramSocket.setBroadcast(boolean enable)
Enables/Disables SO_BROADCAST
void
Sets the interface to use for sending multicast packets.
void
Socket.setKeepAlive(boolean on)
This method sets the value for the socket level socket option SO_KEEPALIVE.
void
Disable/Enable local loopback of multicast packets.
void
Sets the local network interface used to send multicast messages
void
Socket.setOOBInline(boolean on)
Enables/disables the SO_OOBINLINE option
void
SocketOptions.setOption(int optionId, Object val)
Sets the specified option on a socket to the passed in object.
void
This method sets the value for the system level socket option SO_RCVBUF to the specified value.
void
This method sets the value for the system level socket option SO_RCVBUF to the specified value.
void
This method sets the value for the system level socket option SO_RCVBUF to the specified value.
void
Enables/Disables SO_REUSEADDR.
void
Enables/Disables the SO_REUSEADDR option
void
Socket.setReuseAddress(boolean reuseAddress)
Enables/Disables the SO_REUSEADDR option
void
This method sets the value for the system level socket option SO_SNDBUF to the specified value.
void
This method sets the value for the system level socket option SO_SNDBUF to the specified value.
void
Socket.setSoLinger(boolean on, int linger)
Sets the value of the SO_LINGER option on the socket.
void
Sets the value of the socket's SO_TIMEOUT value.
void
Sets the value of SO_TIMEOUT.
void
Socket.setSoTimeout(int timeout)
Sets the value of the SO_TIMEOUT option on the socket.
void
Socket.setTcpNoDelay(boolean on)
Sets the TCP_NODELAY option on the socket.
void
Sets the traffic class value
void
Sets the traffic class value