Example #1
0
  protected void connect(String serverip, String script) {
    if (mConnect == null) {
      mConnect = new ServerkoConnect();
    }

    mConnect.connect(serverip, script, this);
  }
Example #2
0
 protected void send(String data) {
   if (mConnect != null) {
     mConnect.send(data);
   }
 }
Example #3
0
 protected void join(String addr, String user, String script) {
   if (mConnect != null) {
     mConnect.join(addr, user, script);
     mUsername = user;
   }
 }
Example #4
0
 protected void disconnect() {
   if (mConnect != null) {
     mConnect.close();
   }
 }