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

Class Host

cSploit/src/org/csploit/android/events/Host.java:8–24  ·  view source on GitHub ↗

an host has been found

Source from the content-addressed store, hash-verified

6 * an host has been found
7 */
8public class Host implements Event {
9 public final byte[] ethAddress;
10 public final InetAddress ipAddress;
11 public final String name;
12
13 public Host(byte[] ethAddress, InetAddress ipAddress, String name) {
14 this.ethAddress = ethAddress;
15 this.ipAddress = ipAddress;
16 this.name = name;
17 }
18
19 public String toString() {
20 return String.format("Host: { ethAddress=[%02X:%02X:%02X:%02X:%02X:%02X], ipAddress='%s', name='%s' }",
21 ethAddress[0], ethAddress[1], ethAddress[2], ethAddress[3], ethAddress[4], ethAddress[5],
22 ipAddress.getHostAddress(), name);
23 }
24}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected