/**************************************************************** ** Copyright 1997 by DTAI Incorporated, All Rights Reserved ** **************************************************************** ** ** $Id: NetPortToServer.java,v 1.1 1999/10/18 17:52:20 csl Exp $ ** ** $Source: /h/chrome/alliance/developer/viewsource/kadel_ssjava/NetPortToServer.java,v $ ** ****************************************************************/ package dtai.net; import java.net.*; import java.io.*; /** * NetPortToServer - in client/server, this is a class in the client that * provides a simple API for a socket interface to some server * * @version 1.0b1 * @author DTAI, Incorporated * * $Id: NetPortToServer.java,v 1.1 1999/10/18 17:52:20 csl Exp $ * * $Source: /h/chrome/alliance/developer/viewsource/kadel_ssjava/NetPortToServer.java,v $ */ public class NetPortToServer extends NetPort { /** * constructs the object from the server machine's hostname and TCP/IP * port number to connect to. * * @param host the hostname * @param port the port number * @exception IOException if an IO error occurred */ public NetPortToServer ( String host, int port ) throws IOException { super ( new Socket ( host, port ) ); } /** * constructs the object from the server machine's Internet address and * TCP/IP port number to connect to. * * @param address the Internet address * @param port the port number * @exception IOException if an IO error occurred */ public NetPortToServer ( InetAddress address, int port ) throws IOException { super ( new Socket ( address, port ) ); } }