Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Uses of Class
java.net.SocketException

Uses of SocketException in java.net
 

Subclasses of SocketException in java.net
 class BindException
          This exception indicates that an error occurred while attempting to bind socket to a particular port.
 class ConnectException
          This exception indicates that an error occurred while attempting to connect to a remote host.
 class NoRouteToHostException
          This exception indicates that there is no TCP/IP route to the requested host.
 class PortUnreachableException
          This exception signals that an ICMP port unreachable datagram has been received.
 

Methods in java.net that throw SocketException
static java.util.Vector VMNetworkInterface.getInterfaces()
          Returns a Vector of InetAddresses.
 void ZDatagramSocketImpl.create()
          This method is responsible for socket creation.
 void SocketOptions.setOption(int optionId, java.lang.Object val)
          Sets the specified option on a socket to the passed in object.
 java.lang.Object SocketOptions.getOption(int optionId)
          Returns the current setting of the specified option.
private  SocketImpl Socket.getImpl()
           
 void Socket.setTcpNoDelay(boolean on)
          Sets the TCP_NODELAY option on the socket.
 boolean Socket.getTcpNoDelay()
          Tests whether or not the TCP_NODELAY option is set on the socket.
 void Socket.setSoLinger(boolean on, int linger)
          Sets the value of the SO_LINGER option on the socket.
 int Socket.getSoLinger()
          Returns the value of the SO_LINGER option on the socket.
 void Socket.setOOBInline(boolean on)
          Enables/disables the SO_OOBINLINE option
 boolean Socket.getOOBInline()
          Returns the current setting of the SO_OOBINLINE option for this socket
 void Socket.setSoTimeout(int timeout)
          Sets the value of the SO_TIMEOUT option on the socket.
 int Socket.getSoTimeout()
          Returns the value of the SO_TIMEOUT option on the socket.
 void Socket.setSendBufferSize(int size)
          This method sets the value for the system level socket option SO_SNDBUF to the specified value.
 int Socket.getSendBufferSize()
          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.
 void Socket.setReceiveBufferSize(int size)
          This method sets the value for the system level socket option SO_RCVBUF to the specified value.
 int Socket.getReceiveBufferSize()
          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.
 void Socket.setKeepAlive(boolean on)
          This method sets the value for the socket level socket option SO_KEEPALIVE.
 boolean Socket.getKeepAlive()
          This method returns the value of the socket level socket option SO_KEEPALIVE.
 boolean Socket.getReuseAddress()
          Checks if the SO_REUSEADDR option is enabled
 void Socket.setReuseAddress(boolean reuseAddress)
          Enables/Disables the SO_REUSEADDR option
 int Socket.getTrafficClass()
          Returns the current traffic class
 void Socket.setTrafficClass(int tc)
          Sets the traffic class value
 void ServerSocket.setSoTimeout(int timeout)
          Sets the value of SO_TIMEOUT.
 void ServerSocket.setReuseAddress(boolean on)
          Enables/Disables the SO_REUSEADDR option
 boolean ServerSocket.getReuseAddress()
          Checks if the SO_REUSEADDR option is enabled
 void ServerSocket.setReceiveBufferSize(int size)
          This method sets the value for the system level socket option SO_RCVBUF to the specified value.
 int ServerSocket.getReceiveBufferSize()
          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.
 void PlainSocketImpl.setOption(int optID, java.lang.Object value)
           
 java.lang.Object PlainSocketImpl.getOption(int optID)
           
protected  void PlainDatagramSocketImpl.bind(int lport, InetAddress laddr)
           
protected  void PlainDatagramSocketImpl.connect(InetAddress i, int port)
           
protected  void PlainDatagramSocketImpl.create()
           
 void PlainDatagramSocketImpl.setOption(int optID, java.lang.Object value)
           
 java.lang.Object PlainDatagramSocketImpl.getOption(int optID)
           
static NetworkInterface NetworkInterface.getByName(java.lang.String name)
          Returns an network interface by name
static NetworkInterface NetworkInterface.getByInetAddress(InetAddress addr)
          Return a network interface by its address
static java.util.Enumeration NetworkInterface.getNetworkInterfaces()
          Return an Enumeration of all available network interfaces
 InetAddress MulticastSocket.getInterface()
          Returns the interface being used for multicast packets
 void MulticastSocket.setInterface(InetAddress addr)
          Sets the interface to use for sending multicast packets.
 void MulticastSocket.setNetworkInterface(NetworkInterface netIf)
          Sets the local network interface used to send multicast messages
 NetworkInterface MulticastSocket.getNetworkInterface()
          Gets the local network interface which is used to send multicast messages
 void MulticastSocket.setLoopbackMode(boolean disable)
          Disable/Enable local loopback of multicast packets.
 boolean MulticastSocket.getLoopbackMode()
          Checks if local loopback mode is enabled
protected abstract  void DatagramSocketImpl.bind(int lport, InetAddress laddr)
          This method binds the socket to the specified local port and address.
protected abstract  void DatagramSocketImpl.create()
          Creates a new datagram socket.
protected  void DatagramSocketImpl.connect(InetAddress address, int port)
          Connects the socket to a host specified by address and port.
(package private)  DatagramSocketImpl DatagramSocket.getImpl()
           
 int DatagramSocket.getSoTimeout()
          Returns the value of the socket's SO_TIMEOUT setting.
 void DatagramSocket.setSoTimeout(int timeout)
          Sets the value of the socket's SO_TIMEOUT value.
 int DatagramSocket.getSendBufferSize()
          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.
 void DatagramSocket.setSendBufferSize(int size)
          This method sets the value for the system level socket option SO_SNDBUF to the specified value.
 int DatagramSocket.getReceiveBufferSize()
          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.
 void DatagramSocket.setReceiveBufferSize(int size)
          This method sets the value for the system level socket option SO_RCVBUF to the specified value.
 void DatagramSocket.bind(SocketAddress address)
          Binds the socket to the given socket address.
 void DatagramSocket.connect(SocketAddress address)
          Connects the datagram socket to a specified socket address.
 void DatagramSocket.setReuseAddress(boolean on)
          Enables/Disables SO_REUSEADDR.
 boolean DatagramSocket.getReuseAddress()
          Checks if SO_REUSEADDR is enabled.
 void DatagramSocket.setBroadcast(boolean enable)
          Enables/Disables SO_BROADCAST
 boolean DatagramSocket.getBroadcast()
          Checks if SO_BROADCAST is enabled
 void DatagramSocket.setTrafficClass(int tc)
          Sets the traffic class value
 int DatagramSocket.getTrafficClass()
          Returns the current traffic class
 

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