protected void connect(String serverip, String script) { if (mConnect == null) { mConnect = new ServerkoConnect(); } mConnect.connect(serverip, script, this); }
protected void send(String data) { if (mConnect != null) { mConnect.send(data); } }
protected void join(String addr, String user, String script) { if (mConnect != null) { mConnect.join(addr, user, script); mUsername = user; } }
protected void disconnect() { if (mConnect != null) { mConnect.close(); } }