- 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.
- createUnresolved(String, int) - Static method in class java.net.InetSocketAddress
-
Creates an unresolved socket address from a hostname and a port number.