kom.tools.ipc
Class IPCClient

java.lang.Object
  |
  +--kom.tools.ipc.IPCClient
Direct Known Subclasses:
HTTPClient, NameFinder, NewsClient

public class IPCClient
extends java.lang.Object

A network client. The client makes a connection to a server and then uses the connection for both sending and receiving data.


Field Summary
 IPCConnection connection
          Connection to the server side
 
Constructor Summary
IPCClient()
          class constructor
 
Method Summary
 IPCConnection connect(java.lang.String host, int port)
          Sets up a connection to a given server
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

connection

public IPCConnection connection
Connection to the server side
Constructor Detail

IPCClient

public IPCClient()
class constructor
Method Detail

connect

public IPCConnection connect(java.lang.String host,
                             int port)
Sets up a connection to a given server
Parameters:
host - The host name of the machine where the server is running.
port - The port number on which the server listens for incoming connections
Returns:
A connection to be used for communication with the server.