|
common-util | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlocal.tomas.util.net.BaseClient
public abstract class BaseClient
Title: Base of Network Client Classes Description: Copyright: Copyright (c) 2001 Tomas Teubner Company: Tomas Teubner
| Nested Class Summary | |
|---|---|
static class |
BaseClient.NetAck
Parsed response. |
| Field Summary | |
|---|---|
protected Socket |
cmd
Socket of command connection. |
protected BufferedReader |
cmdIn
Command response stream. |
protected PrintStream |
cmdOut
Command output stream. |
| Constructor Summary | |
|---|---|
BaseClient()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
close()
Close connection. |
BaseClient.NetAck |
connect(String host,
int port)
Establish new connection |
BaseClient.NetAck |
getAck()
Get response. |
protected BaseClient.NetAck |
sendCommand(String command)
Send command. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Socket cmd
protected BufferedReader cmdIn
protected PrintStream cmdOut
| Constructor Detail |
|---|
public BaseClient()
| Method Detail |
|---|
public BaseClient.NetAck connect(String host,
int port)
throws NetException
host - host name or IP addressport - port number
NetException
public void close()
throws NetException
NetException
protected BaseClient.NetAck sendCommand(String command)
throws NetException
command - the command
NetException
public BaseClient.NetAck getAck()
throws NetException
NetException
|
common-util | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||