an host has been found
| 6 | * an host has been found |
| 7 | */ |
| 8 | public 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected