Back to project page PortAuthority.
The source code is released under:
GNU General Public License
If you think the Android project PortAuthority listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.aaronjwood.portauthority.network; //from w w w. ja va 2s .co m import com.aaronjwood.portauthority.async.GetHostnameAsyncTask; import com.aaronjwood.portauthority.async.ScanPortsAsyncTask; import com.aaronjwood.portauthority.response.HostAsyncResponse; public class Host { private static final String TAG = "Host"; public void scanPorts(String ip, int startPort, int stopPort, HostAsyncResponse delegate) { new ScanPortsAsyncTask(delegate).execute(ip, startPort, stopPort); } public void getHostname(String ip, HostAsyncResponse delegate) { new GetHostnameAsyncTask(delegate).execute(ip); } }