Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

14
LINES

< > BotCompany Repo | #1012056 // androidAtPrecisePort - returns null if port not available

JavaX fragment (include)

static Android3 androidAtPrecisePort(int port, S name, O responder) {
  Android3 a = new Android3(name);
  a.useMultiPort = false;
  a.startPort = port;
  a.console = false;
  a.responder = makeResponder(responder);
  makeAndroid(a);
  if (a.port != a.startPort) {
    //print("Could not register port " + a.startPort + ", disposing.");
    a.dispose();
    null;
  }
  ret a;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1012056
Snippet name: androidAtPrecisePort - returns null if port not available
Eternal ID of this version: #1012056/3
Text MD5: 461d74c399e9224cda057b9fc84514bc
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-17 03:12:26
Source code size: 391 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 384 / 410
Version history: 2 change(s)
Referenced in: [show references]