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

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