Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

CDC 1.1.2

Uses of Class
java.net.SocketException

Packages that use SocketException
java.net Provides the classes for implementing networking applications. 
 

Uses of SocketException in java.net
 

Subclasses of SocketException in java.net
 class BindException
          Signals that an error occurred while attempting to bind a socket to a local address and port.
 class PortUnreachableException
          Signals that an ICMP Port Unreachable message has been received on a connected datagram.
 

Methods in java.net that throw SocketException
 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.
static NetworkInterface NetworkInterface.getByName(String name)
          Searches for the network interface with the specified name.
static NetworkInterface NetworkInterface.getByInetAddress(InetAddress addr)
          Convenience method to search for a network interface that has the specified Internet Protocol (IP) address bound to it.
static Enumeration NetworkInterface.getNetworkInterfaces()
          Returns all the interfaces on this machine.
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.
protected  void DatagramSocketImpl.connect(InetAddress address, int port)
          Connects a datagram socket to a remote destination.
 void DatagramSocket.bind(SocketAddress addr)
          Binds this DatagramSocket to a specific address & port.
 void DatagramSocket.connect(SocketAddress addr)
          Connects this socket to a remote socket address (IP address + port number).
 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 DatagramSocket.setReuseAddress(boolean on)
          Enable/disable the SO_REUSEADDR socket option.
 boolean DatagramSocket.getReuseAddress()
          Tests if SO_REUSEADDR is enabled.
 void DatagramSocket.setBroadcast(boolean on)
          Enable/disable SO_BROADCAST.
 boolean DatagramSocket.getBroadcast()
          Tests if SO_BROADCAST is enabled.
 void DatagramSocket.setTrafficClass(int tc)
          Sets traffic class or type-of-service octet in the IP datagram header for datagrams sent from this DatagramSocket.
 int DatagramSocket.getTrafficClass()
          Gets traffic class or type-of-service in the IP datagram header for packets sent from this DatagramSocket.
 

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(SocketAddress bindaddr)
          Creates a datagram socket, bound to the specified local socket address.
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.
DatagramPacket(byte[] buf, int offset, int length, SocketAddress address)
          Constructs a datagram packet for sending packets of length length with offset ioffsetto the specified port number on the specified host.
DatagramPacket(byte[] buf, int length, SocketAddress address)
          Constructs a datagram packet for sending packets of length length to the specified port number on the specified host.
 


CDC 1.1.2

Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 218 specification.