PPT Slide
public void handleInput(String strInput){
System.out.println(strInput);
}
public void closeSession(){
try {
writer = null;
reader = null;
sock.close();
}
catch (IOException e){
if (DEBUG) System.err.println
("Error closing socket to " + strHost);
}
}
public void setHost(String strHost){
this.strHost = strHost;
}
public void setPort(int iPort){
this.iPort = iPort;
}
Previous slide
Next slide
Back to first slide
View graphic version