UDPevent? What should I use to make an event when an UDP packet arrives?

every time my machine gets an UDP packet I need to write out the time(within millisec), and therefor I need to find an eventnotifier of some kind that checks for UDP packets arriving..

oki.. so I'm building a class for reciving the packets.. I guess i should use a thread since my program allredy is reciving these packets whit JMF - reciveStream.
now the problem is, how do I write out the time for each packet, i cant seem to find any events i can use for this, and as far as I can see, the datagarmsocket is listening for the packets and doing something with them(**) without somewhere for me to put the: System.out.printeln(time);
(**) I am going to write the packets to a file and parse it for the sequence numbers, how do I do this?

Similar Messages

  • What setting should be used to make the smallest size quicktime video file.

    What setting should I use to make a small sized movie for my family that lives 1200 miles away. I am using the iSight with QT Pro 7.0.4 and will be emailing them via Apple Mail to my mom that uses the most current version of AOL for PC with a 1 Meg DSL connection. The reason I am emailing them is she does not have a camera to live chat.
    The first movie I tried was over 4 meg and these files have to go over the internet. It bounced back saying it was to big. It was only a minute long.
    Mac Mini 1.42 8X DVD+-RW Dual Layer 24X CD-RW 250 Gig Ministack Version 2   Mac OS X (10.4.6)   Apple Bluetooth keyboard 19" Nec VGA CRT Flat Screen 1 Gig Memory iSight

    Make your recordings and then open the QuickTime movie.
    Use the Share menu and choose the email small setting. You'll get an estimated file size in the dialog window.
    Your viewers must have QuickTime 7 installed to view these files.

  • What programs should I use to make an interactive ebook for ipad?

    What programs should I use to make an interactive children's ebook for ipad?

    Adobe has a DPS add-on for InDesign (http://www.adobe.com/products/digital-publishing-suite-single.html) and it handles all the page transitions as well as swapping between portait and landscape. I think the way most people work is the pages are built in inDesign and regions of animation from EA are added second. But if every page had full screen animation, I suppose you may want to build your pages in Edge first.

  • My iPod Touch 4g keeps rebooting. ( sometimes it freezes on the white screen; sometimes on the Apple symbol) What should I do to make it stop? My iPod's warranty has expired. It happens every 10-15 minutes. Help!

    My iPod Touch 4g keeps rebooting. ( sometimes it freezes on the white screen; sometimes on the Apple symbol) What should I do to make it stop? My iPod's warranty has expired. It happens every 10-15 minutes. Help!

    First, try a system reset.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.
    If the Reset doesn't work, try a Restore.  Note that it's nowhere near as quick as a Reset.  It could take well over an hour!  Connect via cable to the computer that you use for sync.  From iTunes, select the iPad/iPod and then select the Summary tab.  Follow directions for Restore and be sure to say "yes" to the backup.  You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod.  Again, say "yes."
    At the end of the basic Restore, you will be asked if you wish to sync the iPad/iPod.  As before, say "yes."  Note that that sync selection will disappear and the Restore will end if you do not respond within a reasonable time.  If that happens, only the apps that are part of the IOS will appear on your device.  Corrective action is simple -  choose manual "Sync" from the bottom right of iTunes.
    If you're unable to do the Restore, go into Recovery Mode per the instructions here.

  • Virtualization...what should i use?

    Hallo.
    I'm planning  to virtualize a Quad core / 4gb ram. I'd like to build 2-4 virtual machines for testing some advanced features of Asterisk / MySQL and some other well known softwares. I have some licenses for Asterisk addons from digium, so i'd like to maintain them over time, using the virtual machine and moving it.
    What should i use? I don't need fancy 3D Acceleration, just a common abstraction for all the hw i have (pretty standard: usb, nics, harddisks...).
    I was thinking about Xen Server or Virtual Box (anyway, i'm using them for my personal lab, so i'd prefer solutions that don't require a license...).
    The solution should be "headless", i don't want to be forced to login to X every time the guest systems need to be booted...
    Thanks in advances.
    See Ya
    Luca

    i've started playing around with QEMU/KVM a couple days ago, and i like it. was using vbox before, which i didn't.
    i haven't noticed any mouse lag yet, after installing a few of the main distros i wanted to try out again: fedora 19, debian wheezy, ubuntu (latest, whatever the no.). only trouble i have that so far i wasn't able to get a mouse working properly in an archlinux guest    probably something i'm doing wrong, but couldn't figure it out yet.
    tried a few GUI frontends, but found that i'm better off starting VMs from the command line: less confusing, and all of the GUI apps i tried had some quirks, like didn't find proper directories or executables.
    using KVM and virtio drivers, it's pretty fast; admittedly not as fast a bare metal install, but not slower than i remember vbox (just my impression, no benchmarking or such). assuming i'll get the arch guest trouble sorted out, i'll stick with KVM/QEMU.
    Last edited by phanisvara (2013-08-02 11:43:23)

  • I am trying to copy more or less 30G from my MacbookPro to an external hard drive and it is stuck in the "preparing to copy" step. But that for more than one hour. What should I do to make it faster? Thanks a lot in advance!

    I am trying to copy more or less 30G from my MacbookPro to an external hard drive and it is stuck in the "preparing to copy" step. But that for more than one hour. What should I do to make it faster? Thanks a lot in advance!

    Thanks Shootist007, by blockd files I mean files that I have changed to blocked and when I tried to move then for the first time, I had to unblock again. I am trying to backup my pictures, my songs and other files like word documents and excel tables. First I put all of them as blocked, what caused the first problems on trying to move them. Then, I've unchecked the block option and if I try to move one by one, there is no problem. The issue is to move all together, because it gets stuck in the preparing to copy files step. Anyway, if I cannot do all by once, I'll do it one by one, event though that was not suposed to happen if we are talking about technology, right? Anyway, I thank you again for trying to help me!

  • My iphone 4 after update says that the accessories are not compatible. what should I do today makes iphone two weeks?

    my iphone 4 after update says that the accessories are not compatible. what should I do today makes iphone two weeks?

    Your post doesn't make sense in English.  Please post in your native language.

  • What should I use to clean the trackpad?

    I bought iKlear to clean the screen of my MacBook and it works great. I have been using it for years on my iBook. I was reading the directions and it says not to use it on the trackpad. I had used it on my iBook trackpad with no problems. What should I use then to clean my trackpad? Why should I not use it on my trackpad? Anyone have suggestions or used iKlear on their trackpad despite iKlear's warnings?
    Thom

    A very slightly damped cotton cloth works wonders. Just be sure to wring it out as best you can so no liquid gets anywhere you don't want it to be.

  • Is it possible to raise the bit rate of songs higher than 256 on iTunes? If not what should i use or do to raise the bit rate of songs?

    Is it possible to raise the bit rate of songs higher than 256 on iTunes? If not what should i use or do to raise the bit rate of songs?

    Songs you rip from CD can have their bitrate increased to a maximum of 320Kbps from the iTunes preferences; alternatively, the default encoder can be changed to a lossless one. Songs from other sources have a fixed maximum bitrate.
    (67928)

  • I am selling my old phone, what should I do to make sure it is ready to be activated by someone else?

    I recently bought a new phone and I want to sell my old one (an iPhone 4).  I activated my new phone and erased all the data on my old phone so there is no personal information on it.  Do I need to do anything else to make sure the buyer can activate this phone right when they buy it?

    <Duplicate post.  Please see I am selling my old phone, what should I do to make sure it is ready to be activated by someone else? for any replies.>

  • What should I use? Vectors or...

    I'm storing a large amount of Person objects, this is for a type of game I'm trying to create where it saves the players name, wins, losses, rank, etc in each Person object (this will all be in a text file also). I want these so that they can be sorted by any one of these statistics. I'm not sure how to go about this. Vectors were the first thing that came to my mind, but then I thought about LinkedLists, but I don't know much about them yet, I just know it's an option. My brother told me use LinkedLists, but that's all he would tell me. What should I use for this kind of task? All suggestions are welcome, I need a little help with this design. One more thing about this, players will be added and removed also. I really need some insight, thanks.
    This is a side question, if someone could answer it, that would be nice, otherwise it's ok. How does a LinkedList differ from a Vector? Can't everything a LinkedList do, a Vector can do also with the same amount of ease? All I know that LinkedLists point to the next and previous nodes or something like that, not really sure what its advantage is. Thank you.

    An array memory for holding each of the objects is allocated when you create it, hence you have to define the number of object you want when you create it.
    +--+--+--+--+--+--+
    |I0|I1|I2|I3|I4|I5|  < Indexs
    +--+--+--+--+--+--+
    |V0|V1|V2|V3|V4|V5| < Values
    +--+--+--+--+--+--+Pro: you can access the data quickly, as you have a direct refrence to each value, via it's index.
    Con: Fixed size
    Con: Waisted space
    A Vector is a growable array.
    It does this by creating a fixed sized array, then waiting until it's full, then creating a bigger one and then copying all the data from the smaller, old array to the new, bigger array. This means that every now and again you suffer a performce hit as your array grows.
    Pro: you can access the data quickly, as you have a direct refrence to each value, via it's index.
    Pro: Not a fixed size
    Con: Will slow down when it grows.
    Con: Waisted space
    A Linked List does not have this problem each element holds the refrence to the next, unlike an array where the "system" holds a refrence to each element. This reduces its memory footprint, however its slower to search through as you have to loop through all the objects.
    +----+----+
    |DATA|LINK|
    +----+--|-+
            |     +----+----+
            +-->  |DATA|LINK|
                  +----+----+Pro: Growable
    Pro: Size
    Con: Slow to search
    There are things you can do to speed up a linked list (double linked lists & improve the order in which they are added) but it's still slow.
    I'll leave choosing the data structure to you.

  • What should I use as parameter name in call.addParameter in WS DII client

    I'm using dynamic invocation interface to call a web service in Oracle OC4J.
    The part of WSDL "Types" is:
    <element name="myType" type="tns:myType" />
       <complexType name="myType">
         <sequence>
           <element name="sss" nillable="true" type="string" />
         </sequence>
      </complexType>
    ...My J2SE client has following code I belive create problem:
    call.addParameter("sss", input,MyType.class, ParameterMode.IN);when I invoke the web service, I got error:
    javax.xml.rpc.soap.SOAPFaultException: caught exception while handling request: unexpected element name: expected={http://mypackage/B2BGateway/types}myType, actual=sss
    I changed my code according to this message as it expected to be:
    call.addParameter("{http://mypackage/types}myType",
         input,MyType.class, ParameterMode.IN);I got :
    HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Error parsing envelope: (2, 179) Expected name instead of {.
    seems the "{" should not be part of parameter name.
    Then, what should I use as parameter name.
    BTW, the web service server side code should works fine as I can test it with others client.
    Thanks

    Moved one step further:
    I changed abit to code:
    call.addParameter("myType", input,MyType.class, ParameterMode.IN);I can see the server side got SOAP request:
       <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
          <env:Body>
             <myType>
                <ans1:sss xmlns:ans1="http://mypackage/types/">abc</ans1:sss>
             </myType>
          </env:Body>
       </env:Envelope>As you can see, the problem in the generated request is "myType" does not have namespace
    Could someone tell me how to fix it.
    Thanks
    Edited by: John618 on Feb 21, 2009 5:03 PM

  • Is there a way to find out what computer was used to make an order

    I found some charges on my account that I did not make assuming that it was either my 14 year old son or soon to be ex-husband, is there a way to tell what computer was used to make the order?

    rbailey60 wrote:
    Last update was 3/3/2011 which was the itunes update. So the problem must be w/the itunes update. Does anyone know how we can contact MAC to tell them of this problem?
    It's highly doubtful there's a general problem caused by that update, or the forums would be full of similar posts. More likely, it's specific to your setup somehow.
    Have you Restarted your Mac lately? If not, that's always worth a try.
    Then, make sure there isn't a problem with the file system on your internal HD. Verify it, per #6 in [Formatting, Partitioning, Verifying, and Repairing Disks|http://web.me.com/pondini/AppleTips/DU.html] (or use the link in *User Tips* at the top of the +Using Snow Leopard+ forum).
    If that's ok, then as GfulDedFan says, run +*Repair Disk Permissions,+* per #5 there.
    If that doesn't help, try connecting to your router via Ethernet cable instead of wireless, to rule out interference problems.
    If you have the same results via Ethernet, you can make an appointment at the Genius Bar of your nearest Apple Store: http://www.apple.com/retail/geniusbar/
    Or call AppleCare at: (800) APL-CARE (800-275-2273)

  • What should I use to burn an iMovie project to a DVD that will play in the TV?

    What should I use to burn an iMovie project to a DVD that will play in the TV?

    try google
    http://www.daniusoft.com/convert-imovie/imovie-to-dvd.html
    Thread
    https://discussions.apple.com/thread/4217823?start=0&tstart=0
    https://discussions.apple.com/docs/DOC-3711

  • How to find the navigation bar at the apps, PDF reader Lite? after i zoom in, the navigation bar dissapear~ what should i do to make the navigation bar reappear?

    How to find the navigation bar at the apps, PDF reader Lite? after i zoom in, the navigation bar dissapear~ what should i do to make the navigation bar reappear?

    Hello,
    Yes it will be in your page template. You just need to move #NAVIGATION_BAR# substitution under the #LOGO# substitution tag, probably something like this should work
    #LOGO#&lt;div>#NAVIGATION_BAR#&lt;/div>
    Carl

Maybe you are looking for

  • Disk is locked message

    Just started getting this message when I try to open itunes. It was working fine and just started this. We have 4 user accounts that share the folder so when someone buys a song it is available to all users on the computer. This was setup and working

  • How to access music on external hard drive?

    Hi, I picked up my new iMac yesterday and am stuck! I have an external hard drive that has stacks of music, movies etc on it. I was hoping to be able to plug it into my iMac and iTunes would find it all, but that doesn't seem to work. The music was r

  • Can't remove the screen lock by PIN and can't use the screen to receive calls

    Hello, I have a brand new SONY Xperia , Model Number D5803, Android version 5.0.2. , Baseband version 8974-AAAAANAZQ-00063-42, Kernel version 8974-perf-g3f600d1. , Build number 23.2.A.1.62. I set a screen lock by PIN. However when I receive calls I c

  • Sharepoint Online Can not edit anything in Sharepoint designer as Site collection administrator

    Dear all, I am using sharepoint online and sharepoint designer 2013. Things were working fine but one day it suddenly stopped working. I have assigned site collection administrator to several accounts and I tried on different computers. I can not edi

  • Displaying Employee Photo in smartform in SAP-HR

    hi all, how can i display employee photo in smartform which is not uploaded in the sytem with tcode se78 but throgh diff tcode (OAAD) by HR functional. There are mainly two parts: 1. Procedure to retrieve that photo from the system