Skip navigation links
A B C D E G H I J L M N P R S T U 

S

send(DatagramPacket) - Method in class java.net.DatagramSocket
Sends a datagram packet from this socket.
ServerSocket - Class in java.net
This class implements server sockets.
ServerSocket() - Constructor for class java.net.ServerSocket
Creates an unbound server socket.
ServerSocket(int) - Constructor for class java.net.ServerSocket
Creates a server socket, bound to the specified port.
ServerSocket(int, int) - Constructor for class java.net.ServerSocket
Creates a server socket and binds it to the specified local port number, with the specified backlog.
ServerSocket(int, int, InetAddress) - Constructor for class java.net.ServerSocket
Create a server with the specified port, listen backlog, and local IP address to bind to.
ServerSocketFactory - Class in javax.net
This class creates server sockets.
ServerSocketFactory() - Constructor for class javax.net.ServerSocketFactory
Creates a server socket factory.
setAddress(InetAddress) - Method in class java.net.DatagramPacket
Sets the IP address of the machine to which this datagram is being sent.
setBroadcast(boolean) - Method in class java.net.DatagramSocket
Enable/disable SO_BROADCAST.
setData(byte[], int, int) - Method in class java.net.DatagramPacket
Set the data buffer for this packet.
setData(byte[]) - Method in class java.net.DatagramPacket
Set the data buffer for this packet.
setInterface(InetAddress) - Method in class java.net.MulticastSocket
Set the multicast network interface used by methods whose behavior would be affected by the value of the network interface.
setKeepAlive(boolean) - Method in class java.net.Socket
Enable/disable SO_KEEPALIVE.
setLength(int) - Method in class java.net.DatagramPacket
Set the length for this packet.
setLoopbackMode(boolean) - Method in class java.net.MulticastSocket
Disable/Enable local loopback of multicast datagrams The option is used by the platform's networking code as a hint for setting whether multicast data will be looped back to the local socket.
setNetworkInterface(NetworkInterface) - Method in class java.net.MulticastSocket
Specify the network interface for outgoing multicast datagrams sent on this socket.
setOOBInline(boolean) - Method in class java.net.Socket
Enable/disable SO_OOBINLINE (receipt of TCP urgent data) By default, this option is disabled and TCP urgent data received on a socket is silently discarded.
setOption(int, Object) - Method in interface java.net.SocketOptions
Enable/disable the option specified by optID.
setPort(int) - Method in class java.net.DatagramPacket
Sets the port number on the remote host to which this datagram is being sent.
setReceiveBufferSize(int) - Method in class java.net.DatagramSocket
Sets the SO_RCVBUF option to the specified value for this DatagramSocket.
setReceiveBufferSize(int) - Method in class java.net.ServerSocket
Sets a default proposed value for the SO_RCVBUF option for sockets accepted from this ServerSocket.
setReceiveBufferSize(int) - Method in class java.net.Socket
Sets the SO_RCVBUF option to the specified value for this Socket.
setReuseAddress(boolean) - Method in class java.net.DatagramSocket
Enable/disable the SO_REUSEADDR socket option.
setReuseAddress(boolean) - Method in class java.net.ServerSocket
Enable/disable the SO_REUSEADDR socket option.
setReuseAddress(boolean) - Method in class java.net.Socket
Enable/disable the SO_REUSEADDR socket option.
setSendBufferSize(int) - Method in class java.net.DatagramSocket
Sets the SO_SNDBUF option to the specified value for this DatagramSocket.
setSendBufferSize(int) - Method in class java.net.Socket
Sets the SO_SNDBUF option to the specified value for this Socket.
setSocketAddress(SocketAddress) - Method in class java.net.DatagramPacket
Sets the SocketAddress (usually IP address + port number) of the remote host to which this datagram is being sent.
setSoLinger(boolean, int) - Method in class java.net.Socket
Enable/disable SO_LINGER with the specified linger time in seconds.
setSoTimeout(int) - Method in class java.net.DatagramSocket
Enable/disable SO_TIMEOUT with the specified timeout, in milliseconds.
setSoTimeout(int) - Method in class java.net.ServerSocket
Enable/disable SO_TIMEOUT with the specified timeout, in milliseconds.
setSoTimeout(int) - Method in class java.net.Socket
Enable/disable SO_TIMEOUT with the specified timeout, in milliseconds.
setTcpNoDelay(boolean) - Method in class java.net.Socket
Enable/disable TCP_NODELAY (disable/enable Nagle's algorithm).
setTimeToLive(int) - Method in class java.net.MulticastSocket
Set the default time-to-live for multicast packets sent out on this MulticastSocket in order to control the scope of the multicasts.
setTrafficClass(int) - Method in class java.net.DatagramSocket
Sets traffic class or type-of-service octet in the IP datagram header for datagrams sent from this DatagramSocket.
setTrafficClass(int) - Method in class java.net.Socket
Sets traffic class or type-of-service octet in the IP header for packets sent from this Socket.
SO_BINDADDR - Static variable in interface java.net.SocketOptions
Fetch the local address binding of a socket (this option cannot be "set" only "gotten", since sockets are bound at creation time, and so the locally bound address cannot be changed).
SO_BROADCAST - Static variable in interface java.net.SocketOptions
Sets SO_BROADCAST for a socket.
SO_KEEPALIVE - Static variable in interface java.net.SocketOptions
When the keepalive option is set for a TCP socket and no data has been exchanged across the socket in either direction for 2 hours (NOTE: the actual value is implementation dependent), TCP automatically sends a keepalive probe to the peer.
SO_LINGER - Static variable in interface java.net.SocketOptions
Specify a linger-on-close timeout.
SO_OOBINLINE - Static variable in interface java.net.SocketOptions
When the OOBINLINE option is set, any TCP urgent data received on the socket will be received through the socket input stream.
SO_RCVBUF - Static variable in interface java.net.SocketOptions
Set a hint the size of the underlying buffers used by the platform for incoming network I/O.
SO_REUSEADDR - Static variable in interface java.net.SocketOptions
Sets SO_REUSEADDR for a socket.
SO_SNDBUF - Static variable in interface java.net.SocketOptions
Set a hint the size of the underlying buffers used by the platform for outgoing network I/O.
SO_TIMEOUT - Static variable in interface java.net.SocketOptions
Set a timeout on blocking Socket operations:
Socket - Class in java.net
This class implements client sockets (also called just "sockets").
Socket() - Constructor for class java.net.Socket
Creates an unconnected socket, with the system-default type of SocketImpl.
Socket(String, int) - Constructor for class java.net.Socket
Creates a stream socket and connects it to the specified port number on the named host.
Socket(InetAddress, int) - Constructor for class java.net.Socket
Creates a stream socket and connects it to the specified port number at the specified IP address.
Socket(String, int, InetAddress, int) - Constructor for class java.net.Socket
Creates a socket and connects it to the specified remote host on the specified remote port.
Socket(InetAddress, int, InetAddress, int) - Constructor for class java.net.Socket
Creates a socket and connects it to the specified remote address on the specified remote port.
SocketAddress - Class in java.net
This class represents a Socket Address with no protocol attachment.
SocketAddress() - Constructor for class java.net.SocketAddress
 
SocketException - Exception in java.net
Thrown to indicate that there is an error creating or accessing a Socket.
SocketException(String) - Constructor for exception java.net.SocketException
Constructs a new SocketException with the specified detail message.
SocketException() - Constructor for exception java.net.SocketException
Constructs a new SocketException with no detail message.
SocketFactory - Class in javax.net
This class creates sockets.
SocketFactory() - Constructor for class javax.net.SocketFactory
Creates a SocketFactory.
SocketOptions - Interface in java.net
Interface of methods to get/set socket options.
SocketPermission - Class in java.net
This class represents access to a network via sockets.
SocketPermission(String, String) - Constructor for class java.net.SocketPermission
Creates a new SocketPermission object with the specified actions.
SocketTimeoutException - Exception in java.net
Signals that a timeout has occurred on a socket read or accept.
SocketTimeoutException(String) - Constructor for exception java.net.SocketTimeoutException
Constructs a new SocketTimeoutException with a detail message.
SocketTimeoutException() - Constructor for exception java.net.SocketTimeoutException
Construct a new SocketTimeoutException with no detailed message.
supportsMulticast() - Method in class java.net.NetworkInterface
Returns whether a network interface supports multicasting or not.
A B C D E G H I J L M N P R S T U 
Skip navigation links