MCPcopy Index your code
hub / github.com/cSploit/android / addOpenPort

Method addOpenPort

cSploit/src/org/csploit/android/net/Target.java:660–680  ·  view source on GitHub ↗
(Port port)

Source from the content-addressed store, hash-verified

658 }
659
660 public void addOpenPort(Port port){
661 boolean notifyList = false;
662 synchronized (mPorts) {
663 Port existing = null;
664 for(Port p : mPorts) {
665 if(p.equals(port)) {
666 existing = p;
667 break;
668 }
669 }
670
671 if(existing != null) {
672 port.mergeTo(existing);
673 } else {
674 mPorts.add(port);
675 notifyList = true;
676 }
677 }
678 if(notifyList)
679 System.notifyTargetListChanged(this);
680 }
681
682 public void addOpenPort(int port, Protocol protocol){
683 addOpenPort(new Port(port, protocol));

Callers 7

onPortFoundMethod · 0.80
onOpenPortFoundMethod · 0.80
onServiceFoundMethod · 0.80
onPortFoundMethod · 0.80
onServiceFoundMethod · 0.80
onOpenPortFoundMethod · 0.80
onPortFoundMethod · 0.80

Calls 4

mergeToMethod · 0.80
equalsMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected