public void write(byte[] b) throws IOException {
        if (_out == null)
            return;
        if (online == false || isConnected() == false) {
            disconnect();
            return;
        }
        if (((char) b[0]) == '\r' && b.length == 1) {
            b = new byte[2];
            b[0] = '\r';
            b[1] = '\n';
        }
        try {
            _out.write(b);
            _out.flush();
        } catch (IOException e) {
            disconnect();
        }
    }