I need a few networking APIs! any help appreciated

Hi people!
I need a few APIs for a networking project, namely an API that does some kind of port scanning similar to the one found in NMAP, and another one that does packet sniffing, similar to that found in CPAC. Anyone knows where can I find any libraries that do anything like that? any help would be greatly appreciated.

I have looked in a few open source sites like sourceforge.net or www.opensource.org but I can't find anything... I also looked it up using google and I found a few CPAC libraries, but they're all for C, none for Java. I was wondering if anyone knew where I could look...

Similar Messages

  • Urgent help needed.....any help appreciated....

    q, Design and implement a java class called statistics that computes the mean, median, standard deviation. Design and implement a java application called statisticsDriver that generates a list of 50 integers (generated randomly) and prints the statistical measures which are calculated using the Statistis Class. Assume there will be no more then 50 input values. Compute all statical values as floating values.
    The above was the question, and below is what i have done so far for the mean part, but it seems to have errors, any help???
    p.s I am also confused what it means by driver class, and do i have to do individual classes for the different statistical measures....please helppppp !!!!!!!!!!, any help would be appreciated...thanks.
    The class say Mean contains the following method:
    public static double mean(double[] data)
    double sum=0.0;
    for (int index=0; index sum=sum+data[index];
    sum=sum/data.length;
    return sum;
    The driver for this class:
    public static void main(java.lang.String[] args) {
    double[] myData={2,5,4,6,7,13};
    System.out.println("The mean of myData");
    System.out.println(Mena.mean(myData));

    This is my method to work out the mean,median and mode of a set of numbers.
    But what i need to do is find the mean, median and mode from a driver class, which generates a list of random numbers, no more then 50. I don't know where to fit this in my method...please help!!!!!!
    main:
    public static void main(String[] args) {
    int[] mainArray = {2,3,6,6,6};
    //outputArray( "Original Array: ",mainArray );
    System.out.println("average is " + mean( mainArray ));
    System.out.println("median is " + median( mainArray ));
    System.out.println("mode is " + mode( mainArray ));
    //mean
    public static double mean(int[] mainArray) {
    int sum = 0;
    for (int i = 0; i < mainArray.length; i++) {
    sum = sum + mainArray;
    double average = sum / mainArray.length;
    return average;
    //median
    public static int median(int[] mainArray) {
    //double sortList = sort(mainArray);
    final int EVEN_NUMBER_OF_ELEMENTS = 0;
    int result = mainArray.length % 2;
    int median = 0;
    // Definition: Median is the Middle number in an odd number of entries array
    // Median is the avg of the two number in the center of an even number array
    if (result == EVEN_NUMBER_OF_ELEMENTS) {
    int rightNumber = mainArray.length / 2;
    int leftNumber = rightNumber - 1;
    median = (mainArray[rightNumber] + mainArray[leftNumber]) / 2;
    else { // Odd number of items, choose the center one
    int rightNumber = mainArray.length / 2;
    median = mainArray[rightNumber];
    return median;
    //mode
    public static double mode(int[] mainArray)
    int mode = 0;
    int elements = 0;
    int tempMode = mainArray[0];
    int temp = 1;
    int x;
    for( x = 1; x < mainArray.length; x++)
    if(mainArray[x-1] == mainArray[x])
    temp++;
    else
    if(temp > elements)
    tempMode = mainArray[x-1];
    elements = temp;
    temp = 1;
    else
    temp = 1;
    if (temp> elements)
         tempMode = mainArray[x-1];
    mode = tempMode;
    return mode;
    any help appreciated..

  • I have two problems with my 2012 13" MacBook Pro. 1. Gray screen shows at startup  2. Randomly disconnects from network. Any help will be greatly appreciated.

    I have two problems with my 2012 13” MacBook Pro.
    Gray screen shows at startup
    Randomly disconnects from network.
    Any help will be greatly appreciated.

    First, open Terminal in your Utilities folder and paste this into the prompt line:
    sudo update_dyld_shared_cache
    Press RETURN. You will be prompted to enter your admin password which will not be echoed to the screen. Press RETURN again.
    Next, boot the computer into Safe Mode.
    Next, do the following:
    Reinstalling Lion/Mountain Lion Without Erasing the Drive
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu.
    Reinstall Lion/Mountain Lion: Select Reinstall Lion/Mountain Lion and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.

  • A mate has an iphone 4 as a work phone and needs to get all data incl messages onto an old iphone 3 as he is leaving. Is this possible, any help appreciated

    A mate has an iphone 4 as a work phone, now he is leaving and needs to get all data incl messages etc onto an old iphone 3. Is this possible, any help appreciated.
    Robbie

    You won't be able to restore a device running iOS 4.2 from a backup of a device running iOS 5 (as you found out).  And the Iphone 3G can only be updated to iOS 4.2.1 so there is no way to migrate from his iPhone 4 back to his iPhone 3G.  He would have to at least have an iPhone 3GS, which will update to iOS 5.1 and would be able to restore from the iPhone 4 backup.  Unfortunately, there isn't any way around it.

  • Hi, WWhen I turn on my mac pc, enter my account password my page wont load up , I can access the internet through my families account but not mine. There is a message telling me I need to delete files but the page won't load anything. Any help appreciated

    Hi
    When I turn on my pc and log into my account there is a message telling me I need to delete files. But the page won't load up anything to allow mw to do this. I am concerned I may have lost all my personal info.
    I can log into other family members accounts but not mine.
    Any help appreciated
    Thanks

    You only have to clone your mac when using certain cable modem.  You don't clone your mac when using dsl.
    Greetings from Northern Ontario, Canada

  • Just recently updated an iPhone 4 to iOS 7. Having trouble activating iMessage. It will not connect to network. Any help ?? All connections are fine other apple devices are working

    Just recently updated an iPhone 4 to iOS 7. Having trouble activating iMessage. It will not connect to network. Any help ?? All connections are fine other apple devices are working

    Hey X300X,
    Thanks for the question. I understand you are experiencing issues with iMessages. The following article may help to resolve your issue:
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    You may also want to reset your network settings:
    Settings > General > Reset > Reset Network Settings.
    Note: this will delete any network related settings (saved Wi-Fi passwords, etc), it will not erase any content from your device.
    Thanks,
    Matt M.

  • I have an iPhone 4s. Sometimes when i open an app it closes again by itself after a few seconds. Any help please??

    I have an iPhone 4s. Sometimes when I open an app it closes again by itself after a few seconds. Any help pls??

    I also had this problem. Go to settings> itunes & app store, tap on your apple ID and sign out. Then open itunes store. It should now open.
    Then sign back in again and the problem should be resolved

  • I have attempted to upgrade os4 to os7. icloud has taken an old expiered email address for which i do not know the password. It will not recognise my current email and password with itunes.  Any help appreciated

    I have attempted to upgrade os4 to os7. At the end, it threw an error that i had to turn off "Find my iphone" on my phone, which seems to be impossible at that stage as i could not access beyond the upgrade screen.
    I thin chose to set up as new iphone, but icloud has taken an old expired email address for which i do not know the password. icloud will not recognise my current itunes email and password, so i now have os7 but am unable to restore from my itunes back up. 
    Desperately need help please... Any help appreciated
    Thankyou

    If you don't know your password, don't know your security questions and don't have a rescue address or don't receive a reset email, you should contact AppleCare who will initially try to assist you with a reset email or if unsuccessful will pass you to the security team to reset your security questions for you.
    If you are in a region that doesn't have international telephone support try contacting Apple through iTunes Store Support.

  • I was trying to sync my 120GB iPod Classic earlier and it said it couldn't sync as the iPod disk could not be "read" or "written to". I now can't get anything onto my iPod, and I was wondering if it is a hard drive problem? Any help appreciated. Thanks.

    I was trying to sync my 120GB iPod Classic earlier, and it said it couldn't sync as the iPod disk could not be "read" or "written to." I now can't get anything onto my iPod, and I was wondering if it is a hard drive problem? Any help appreciated. Thanks.

    Did you go into iTunes to change the location of your media files? if not you will need to go into iTunes and click on preference and select the advance tab then click the iTunes Media folder location.  Select the location of your on external hard drive. 

  • TS1717 Trying to download iTunes onto PC installed with windows vista. Download keeps getting to 99% with 1 second remaining and then freezes / does nothing? Any help appreciated.

    Trying to download itunes onto PC installed with windows vista. Download keeps getting to 99% with 1 second remaining and then freezes / does nothing? Any help appreciated.

    I solved the problem! The updates orignally were downloaded to the C: drive of the server. I've since moved them to the E: drive and for some reason the Content folder in IIS didn't change the file path to the new WSUScontent folder.
    The root cause for this was failing to use the UTILITY designed for this very purpose.
    I edited the virtual directory settings in IIS and was able to put the correct path in.
    You still need to use the UTILITY.. to fix all the other stuff you're still missing.
    In the %ProgramFiles%\Update Services\Tools folder...
    WSUSUTIL MOVECONTENT E:\WSUS E:\WSUS\MoveContent.LOG -SKIPCOPY
    This problem was caused by moving the WSUS updates to a different local drive.
    No. This problem was caused by IMPROPERLY moving the WSUS updates to a different local drive.
    Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
    SolarWinds Head Geek
    Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
    My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
    http://www.solarwinds.com/gotmicrosoft
    The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds.

  • Any help appreciated - - on barefoot ski image optimization

    Any help appreciated.
    Working with Photoshop 7.0 trying to color correct and optimize an image of my son barefooting to prepare for giant vinyl print to create a stand up cut-out on a foam board.
    I will attach 2 downsized images for comparison.
    As you can see one image has nice smile but no sunlight and other image has great sunlight but no smile.
    I need to optimize for CMYK printing the smiling image. I know a bit about levels, but don't know what to change for midtones, highlights, etc. to try and correct this smiling image as best possible.
    Unfortunately I did not set up the Canon EOS Xsi camera to save RAW images at 17 megs and the boat owner is not wanting to go out again for another photo session. Original image is 4.5 megs jpg which I crop image, adjust histogram by "sliding in the sides", convert to CMYK, sharpen unmask at 98%, increase brightness with middle slider in histogram, expand size up to 72 inches tall by 54 inches wide and also set to 150 pixels per inch (may try 300), save as LZW TIFF.
    After that image is like 400 megs, then import into illustrator CS and tile out just the face of a 72 inch X 54 inch and it's amazing pretty clear for 100:1 file size increase (13 X 9 inch sheet).
    I have access to CS4 on Mac only  - - don't know if CS4 Mac file will have any big advantages over my 7.0 in Windows . . .

    Hmmmm, wonder if anybody ever created a plug in for photoshop that allowed you to add more lighting to an image, as in light coming from behind the photographer - - like sunlight effects ?

  • TS3938 Hi, I have a sign being advised Power PC Applications no longer supported when I try to go into Microsoft Word, Excel, Entourage & MSN Messenger, hoe do I resolve this? Any help appreciated.

    Hi, I have a sign being advised Power PC Applications no longer supported when I try to go into Microsoft Word, Excel, Entourage & MSN Messenger, hoe do I resolve this? Any help appreciated Sorry, this is for a Mac Air

    Most versions of Office 2008 use an Universal installer. A few have one which is PowerPC-only.
    In any case, Mac OS X Server 10.6 can be run in emulation, and Rosetta applications can be run in it. Saying that PowerPC-only applications won't run in Mac OS X 10.7 is correct. Saying that they won't run on a Mac which shipped with Mac OS X 10.7 is not.
    (66375)

  • I have an iPhone 4, and iOs 5.1. Suddenly I cannot send or recieve SMS/text messages but iMessage is working - any help appreciated.

    I have an iPhone 4, and iOs 5.1. Suddenly I cannot send or recieve SMS/text messages but iMessage is working - any help appreciated.

    iOS 5 handles texts differently than previous versions.  Resetting the network connections helps, but that didn't seem to solve your problem, and neitherdid the simple reset. 
    Try deleting old messages from the messages app, then after clearing up a lot, just do a simple restart of your phone.  If you want to be extra sure, try resetting your network connections again.  I had this same problem.  Your last option would be a complete restore of the phone, but I don't think we'll have to go that far. 

  • HT4623 "Software update" (words)don't appear when I press settings/general.should appear below "about"on my iPad 2 version4.3.5(8l.1) tenable me to update to ios6 any help appreciated

    In "settings/general" the words SOFTWARE UPDATE don,t appear below ABOUT or anywhere under GENERAL to enable me to update to ios6 . Any help appreciated.

    If you have an iPad 1, the max iOS is 5.1.1. For newer iPads, the current iOS is 6.1.3. The Settings>General>Software Update only appears if you have iOS 5.0 or higher currently installed.
    iOS 5: Updating your device to iOS 5 or Later
    http://support.apple.com/kb/HT4972
    How to install iOS 6
    http://www.macworld.com/article/2010061/hands-on-with-ios-6-installation.html
    iOS: How to update your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT4623
    If you are currently running an iOS lower than 5.0, connect the iPad to the computer, open iTunes. Then select the iPad under the Devices heading on the left, click on the Summary tab and then click on Check for Update.
    Tip - If connected to your computer, you may need to disable your firewall and anitvirus software temporarily.  Then download and install the iOS update. Be sure and backup your iPad before the iOS update. After you update an iPad (except iPad 1) to iOS 6.x, the next update can be installed via wifi (i.e., not connected to your computer).
    Tip 2 - If you're updating via wifi, place your iPad close to your router to preclude getting a corrupted download.
     Cheers, Tom

  • Recently updated the the apple tv remote app for my iPhone4. Now can no longer turn on the apple tv "box" on/off using iPhone app.  Only thing that shows on iP screen is music library.  Home Sharing is on. Any help appreciated.

    Recently updated the the apple tv remote app for my iPhone4. Now can no longer turn on the apple tv "box" on/off using iPhone app as I used to do before the update.  Only thing that shows on iPhone screen is music library.  Home Sharing is on. Any help appreciated.  Sorry if this is not exactly the right place to post this!

    One clue: I have found a reliable way to solve the problem when it happens.
    In my network, I have the main Airport Extreme (Gen 1) which is connected to my router, which distributes IP addresses to my internal subnet.  The other two AEs (one Gen 4, one Gen 5) are set to extend the network.
    When I get this problem with an AppleTV 2 that can "see" my library, but when I try to open it, it says it couldn't find the library, it seems to have to do with a change in which Airport Extreme it's talking to.
    If I restart the main Airport Extreme from the Airport Utility, effectively restarting the entire wireless network, then when the network resumes, every AppleTV 2 is happy again.
    Unfortuntely, the problem does seem to recur - but I'm wondering if it's because temporary interference leads an AppleTV 2 to try to connect to a different AE, and somehow that's mucking with the Home Sharing.  Remember, internet access (Trailers, Store, Netflix) have no issues.  Purely Home Sharing.
    Adam

Maybe you are looking for