com.ptc.wvs.server.cadagent
Class NtClient

java.lang.Object
  extended bycom.ptc.wvs.server.cadagent.NtClient

public class NtClient
extends Object


Field Summary
private  InputStream in
           
private  Log log
           
private  OutputStream out
           
private  Socket socket
           
 
Constructor Summary
NtClient(Log log)
           
 
Method Summary
 void connect(String host, int port)
           
 void disconnect()
           
static void main(String[] args)
           
 void receive()
           
 void send(String command)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

socket

private Socket socket

out

private OutputStream out

in

private InputStream in

log

private Log log
Constructor Detail

NtClient

public NtClient(Log log)
Method Detail

connect

public void connect(String host,
                    int port)
             throws IOException
Throws:
IOException

send

public void send(String command)
          throws IOException
Throws:
IOException

receive

public void receive()
             throws IOException
Throws:
IOException

disconnect

public void disconnect()
                throws IOException
Throws:
IOException

main

public static void main(String[] args)
                 throws IOException
Throws:
IOException