Skip to content

Commit 1e0e95f

Browse files
committed
Updated release version
1 parent 9ff0c49 commit 1e0e95f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

readme.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ Requires internet permission (obviously...)
5151

5252
### Port Scanning
5353

54-
A simple java based TCP port scanner, fast and easy to use. By default it will try and guess the best timeout and threads to use while scanning depending on if the address looks like localhost, local network or remote. You can override these yourself by calling setNoThreads() and setTimeoutMillis()
54+
A simple java based TCP / UDP port scanner, fast and easy to use. By default it will try and guess the best timeout and threads to use while scanning depending on if the address looks like localhost, local network or remote. You can override these yourself by calling setNoThreads() and setTimeoutMillis()
5555

5656
```java
5757
// Synchronously
58-
ArrayList<Integer> openPorts = PortScan.onAddress("192.168.0.1").setPort(21).doScan();
58+
ArrayList<Integer> openPorts = PortScan.onAddress("192.168.0.1").setMethodUDP().setPort(21).doScan();
5959

6060
// Asynchronously
61-
PortScan.onAddress("192.168.0.1").setTimeOutMillis(1000).setPortsAll().doScan(new PortScan.PortListener() {
61+
PortScan.onAddress("192.168.0.1").setTimeOutMillis(1000).setPortsAll().setMethodTCP().doScan(new PortScan.PortListener() {
6262
@Override
6363
public void onResult(int portNo, boolean open) {
6464
if (open) // Stub: found open port
@@ -129,6 +129,7 @@ Sends a Wake-on-Lan packet to the IP / MAC address
129129
Other useful methods:
130130

131131
```java
132+
// Get a MAC Address from an IP address in the ARP Cache
132133
String ipAddress = "192.168.0.1";
133134
String macAddress = ARPInfo.getMacFromArpCache(ipAddress);
134135
```

0 commit comments

Comments
 (0)