boolean readCR;
// Flags used by the TelnetOutputStream
- int writeRC;
- int writeLastErrno;
- boolean writeLastError;
- boolean writeCR;
+ boolean writeCR;
/**
* Constuctor calls reset().
eofMsg = false;
readCR = false;
- writeRC = 0;
- writeLastErrno = 0;
- writeLastError = false;
writeCR = false;
-
}
}
super();
nvt = new TelnetState();
this.socket = socket;
+
+ output = new TelnetOutputStream(this, super.getOutputStream());
+ input = new TelnetInputStream(this, super.getInputStream(), output);
+
+ // Initiate the telnet protocol negotiation.
+ input.telnetSendOptions();
}
// Socket interface -------------------------------------------------------
*/
@Override
public InputStream getInputStream() throws IOException {
- if (input == null) {
- input = new TelnetInputStream(this, super.getInputStream());
- }
return input;
}
*/
@Override
public OutputStream getOutputStream() throws IOException {
- if (output == null) {
- output = new TelnetOutputStream(this, super.getOutputStream());
- }
return output;
}