com.ptc.wvs.server.cadagent
Class NtClient
java.lang.Object
com.ptc.wvs.server.cadagent.NtClient
- public class NtClient
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
socket
private Socket socket
out
private OutputStream out
in
private InputStream in
log
private Log log
NtClient
public NtClient(Log log)
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