- close() - Method in class java.net.DatagramSocket
-
Closes this datagram socket.
- close() - Method in class java.net.ServerSocket
-
Closes this socket.
- close() - Method in class java.net.Socket
-
Closes this socket.
- connect(InetAddress, int) - Method in class java.net.DatagramSocket
-
Connects the socket to a remote address for this socket.
- connect(SocketAddress) - Method in class java.net.DatagramSocket
-
Connects this socket to a remote socket address (IP address + port number).
- connect(SocketAddress) - Method in class java.net.Socket
-
Connects this socket to the server.
- connect(SocketAddress, int) - Method in class java.net.Socket
-
Connects this socket to the server with a specified timeout value.
- ConnectException - Exception in java.net
-
Signals that an error occurred while attempting to connect a socket to a remote address and port.
- ConnectException(String) - Constructor for exception java.net.ConnectException
-
Constructs a new ConnectException with the specified detail message as to why the connect error occurred.
- ConnectException() - Constructor for exception java.net.ConnectException
-
Construct a new ConnectException with no detailed message.
- createServerSocket() - Method in class javax.net.ServerSocketFactory
-
Returns an unbound server socket.
- createServerSocket(int) - Method in class javax.net.ServerSocketFactory
-
Returns a server socket bound to the specified port.
- createServerSocket(int, int) - Method in class javax.net.ServerSocketFactory
-
Returns a server socket bound to the specified port, and uses the specified connection backlog.
- createServerSocket(int, int, InetAddress) - Method in class javax.net.ServerSocketFactory
-
Returns a server socket bound to the specified port, with a specified listen backlog and local IP.
- createSocket() - Method in class javax.net.SocketFactory
-
Creates an unconnected socket.
- createSocket(String, int) - Method in class javax.net.SocketFactory
-
Creates a socket and connects it to the specified remote host at the specified remote port.
- createSocket(String, int, InetAddress, int) - Method in class javax.net.SocketFactory
-
Creates a socket and connects it to the specified remote host on the specified remote port.
- createSocket(InetAddress, int) - Method in class javax.net.SocketFactory
-
Creates a socket and connects it to the specified port number at the specified address.
- createSocket(InetAddress, int, InetAddress, int) - Method in class javax.net.SocketFactory
-
Creates a socket and connect it to the specified remote address on the specified remote port.
- createUnresolved(String, int) - Static method in class java.net.InetSocketAddress
-
Creates an unresolved socket address from a hostname and a port number.