Socket « java.net « Java by API






1.new Socket(InetAddress address, int port) throws IOException
2.Socket: connect(SocketAddress endpoint, int timeout) throws IOException
3.Socket: getInputStream() throws IOException
4.Socket: getLocalSocketAddress()
5.Socket: getOutputStream() throws IOException
6.Socket: getRemoteSocketAddress()
7.Socket: readUTF() and writeUTF(String str)