How can i do the server send a message in a particular time?

Hi everyone!
in my program, clients choose a number from 1 to 10 and send it to the server.
server produces a number every 5 min and send the client the result (if they
win or lose) immediately.
i 'd like to convert this, in order the result to be sent from the server to client when the time(5min) is finished - just before a second draw occurs.
so the clients must wait to be notified by the server and disconnected when
the server sends the result.
can anyone help me on how to convert this piece of code to do that task?
// control thread's execution
      public void run()
         int message=0;
         Timer timer = new Timer();
         TimerTask task = new TimerTask(){
            public void run() {               
               rnum=randGen.nextInt(10);
        display.append( "\n"+ "THE MAGIC NUMBER IS: " + rnum );
     timer.scheduleAtFixedRate(task, 100, 30000) ;
// process connection
         try {
            // read message from client
            do {
               try {
                  message =  input.readInt();
                  if (message==rnum){output.writeUTF("SERVER>>> YOU WON: MAGIC NUMBER IS: " +rnum);}
                   else {output.writeUTF("SERVER>>> YOU LOSE: MAGIC NUMBER IS: " +rnum);}
                  display.append( "\n\n" +"PLAYER " + clientNumber + " SELECTED NUMBER " + message );
                  display.setCaretPosition( display.getText().length() );
               // process problems reading from client
               catch ( IOException ioException ) {
                  display.append( "\nUnknown object type received" );
            } while ( message!=-1 ); //temporary
    

Do you not have a Sent Items folder of some description? 
Search using Spotlight (little magnifying glass in the top right of your screen), that may be able to help.

Similar Messages

  • How can I change the phone number for messaging and FaceTime?

    How can I change the phone number for messaging and FaceTime?

    Unable to make or receive FaceTime calls after April 16, 2014
    http://support.apple.com/kb/TS5419
    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    iOS: FaceTime is 'Unable to verify email because it is in use'
    http://support.apple.com/kb/TS3510
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    How to Set Up & Use iMessage on iPhone, iPad, & iPod touch with iOS
    http://osxdaily.com/2011/10/18/set-up-imessage-on-iphone-ipad-ipod-touch-with-io s-5/
    Set Up Alert Sounds
    http://www.quepublishing.com/articles/article.aspx?p=1873027&seqNum=3
    Extra FaceTime IDs
    http://tinyurl.com/k683gr4
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Troubleshooting iMessage Issues: Some Useful Tips You Should Try
    http://www.igeeksblog.com/troubleshooting-imessage-issues/
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    Fix Can’t Sign Into FaceTime or iMessage iOS 7
    http://ipadtutr.com/fix-login-facetime-imessage-ios-7/
    FaceTime, Game Center, Messages: Troubleshooting sign in issues
    http://support.apple.com/kb/TS3970
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    iOS 7 allows you to block phone numbers or e-mail addresses from contacting you via the Phone, FaceTime, or Messages
    http://howto.cnet.com/8301-11310_39-57602643-285/you-can-block-people-from-conta cting-you-on-ios-7/
    How to Block Someone on FaceTime
    http://www.ehow.com/how_10033185_block-someone-facetime.html
    My Facetime Doesn't Ring
    https://discussions.apple.com/message/19087457#19087457
    How to watch FaceTime calls on the big screen with Apple TV
    http://www.imore.com/daily-tip-ios-5-airplay-mirroring-facetime
    Send an iMessage as a Text Message Instead with a Quick Tap & Hold
    http://osxdaily.com/2012/11/18/send-imessage-as-text-message/
    To send messages to non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
    How to Text on the iPad
    http://ipad.about.com/od/ipad_tricks/a/How-To-Text-On-The-Ipad.htm
    How to Send SMS from iPad
    http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
    How to Receive SMS Messages on an iPad
    http://yourbusiness.azcentral.com/receive-sms-messages-ipad-16776.html
    Apps for Texting http://appadvice.com/appguides/show/apps-for-texting
    You can check the status of the FaceTime/iMessage servers at this link.
    http://www.apple.com/support/systemstatus/
     Cheers, Tom

  • How can I map the composite_dn name with a composite in run time

    Hi All,
    I want to craete a report on number of total business and system faults with the help of Information Publisher in OEM 12c Cloud Control. I am fetching data from the table composite_instance_fault present in SOAINFRA schema. Below os my SQL statement:-
    select error_category,count(error_category) from prefix_SOAINFRA.composite_instance_fault where composite_dn=??EMIP_BIND_TARGET_GUID?? group by error_category
    Now I want to know that how can I map the composite_dn name with a composite in run time. When we fetch data from the repository we used to map target in rumtime by using ??EMIP_BIND_TARGET_GUID?? but here as I am not fetching data from repository, how can I map target in run time.
    On executing the above SQL statement its returing an empty table without any data.
    Please guide!!
    Thanks in Advance!!

    Hi,
    try something like this.
    Mike
    Attachments:
    Unbenannt 5_LV80.vi ‏12 KB

  • How can I get the number of missed messages to pop up on my message icon like the would if i missed a call

    How can I get the number of missed messages to pop up on my message icon like the would if i missed a call

    Hi,
    Go to Settings>Notifications Center>Messages, and make sure the Badge App Icon is turned ON.
    Cheers,
    GB

  • How can I disable the low ink warning messages.

    How can I disable the low ink warning messages.  The Photosmart Plus B210 printer is connected wirelessly to my Mac over a home network..

    Open up a terminal (use spotlight to search for 'terminal')
    Find the process ID of the HP Device monitor by doing 
    ps -eo pid,command | grep "HP Device Monitor"
    The process id will be the number that is printed. Sometimes you may see two results, the correct result to use should print "/Library/Printers/hp/hpio/HP Device Monitor.app/Contents/MacOS/HP Device Monitor"
    Then using the number you got from the first step, run the following command.
    sudo kill -9 <pid>; sudo rm -rf "/Library/Printers/hp/hpio/HP Device Monitor.app/Contents/MacOS/HP Device Monitor"
    You will be prompted for your admin password.
    Below is an example of when I ran it:
    John-MacBook-Pro:~ john$ ps -eo pid,command | grep "HP Device Monitor"
    90509   /Library/Printers/hp/hpio/HP Device Monitor.app/Contents/MacOS/HP Device Monitor
    90513 grep "HP Device Monitor"
    John-MacBook-Pro:~ john$ sudo kill -9 90509; sudo rm -rf "/Library/Printers/hp/hpio/HP Device Monitor.app/Contents/MacOS/HP Device Monitor"

  • I have updated my ipod touch but i have to update iphone and ipad 1 and ipad2 . How can I save the udated software in order to avoid teh time for downloading it again each time

    I have updated my ipod touch but i have to update iphone and ipad 1 and ipad2 . How can I save the udated software in order to avoid teh time for downloading it again each time

    Even though the downloads are for the same iOS version number, they are different downloads and you can't use an iPod iOS update to update an iPhone or iPad etc. The iPad 1 and iPad 2 are also different downloads. So you will need to download different updates for your iPod Touch, iPhone, iPad 1 and the iPad 2.

  • How can I change the disabled of a message text input base on a choice

    how can I change the disabled of a message text input when a dropdown list value is changed? I declare the primaryclientaction but I don't know how to make the event automatically change the disabled of the message text input to true or false.
    HELP!!!! IT'S URGENT....

    Hi,
    assuming you are using ADF Faces:
    Put a submit(); in the on-change javascript event of the dropdown.
    In the disabled property of the input text use some EL to reference the value of the dropdown eg disabled="{#{! bindings.Fruit.inputValue == 'BANANA'}"
    Brenden

  • My document.numbers can not be opened how can i recover the version from yesterday i was not using time machine and it was not in icloud. is there an app i can buy that might help

    my document.numbers can not be opened how can i recover the version from yesterday? i was not using time machine and it was not in icloud. is there an app i can buy that might help

    Thanks Andy,
    I wish I could have told my sister about this as she could not open my homepage back before my new iWeb site. She now can open my site without the yet in case denial window does appear = I thank you.
    I think my iWeb site works as Noone has said otherwise from any platform etc...
    Alex L
    I do agree that should not have to be a consideration for any users so i agree that it would be great if Apple could allow simplicity to run seemlessly.
    I have had this problem since Homepage, and here is
    what has worked for me. I send out the link, and
    then for PC users I send the link with "<" after the address (without quotation
    marks. e.g., <http://site.com>).
    I also put a note that if that doesn't work, to just
    copy and paste the link into a browser. With that I
    have only had 1 person say they still can't open.
    Everyone else gets it to work.
    It's a lot to do and seems like a hassle, but you get
    used to it.
    Hope this helps!
    Andy Martini
    PS - APPLE! When are you going to fix this??! It
    seems like such a small thing yet you guys have been
    stumped for YEARS on this!

  • How can I change the settings of all instances of a particular effect?

    I've applied the same color correction effect to a lot of clips in the timeline. Now I want to fine tune the color correction (same setting for all clips still). How can I change the setting of all instances of the color correction effect without going into each clip manually?
    Looking forward to your thoughts on this!! Go on and save my cold winter editing day ...

    I was first hoping for File> New > Adjustment layer, but it's always greyed out. I thought that would create an adjustment layer, maybe I'm misunderstanding something? Anyway, if I create a black video stump and then right click it and choose "Adjustment layer", it will turn into one, and everything works as it should with that. If the black video become adjustment layer is placed on a video track atop my video, and I add for example color correction to it, it will be applied to the videos below.

  • How can I get the receipt of my old purchases in particular application?thank you

    how can I get the receipt of one of my oldest purchased in particular application?
    thank you

    If you no longer have the original email receipt for it then all you can do is try and find it in your account's purchase history and (depending upon what you need it for) either copy it's details or take a screenshot : log into your account on your computer's iTunes via the Store > View Account menu option, you should then see a Purchase History section with a 'see all' link to the right of it, click on that and you should then see a list of your purchases.

  • How can I change the default font in Messages

    In Messages the default font for outgoing messages is set and grayed out so I cannot change it, how can I modifiy the font and it's size?

    Hi,
    Message Menu > Preferences > Messages section.
    In here you can change the Font (And Colour it), change the Balloon (or background to IM if using different style) and override incoming fonts and colours.
    11:16 PM      Friday; September 21, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and and iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • How can I get the server absolute path of virtual directory?

    Problem context:
    absolute path of my application at JRUN server is
    c:\testing
    nd url is
    http://kaspak/test
    ( kaspak is a machine local to server i-e client nd server r at same machine )
    I m uploading a file nd saving it at server.
    PROBLEM:
    server save my uploaded file at
    C:\Program Files\Allaire\JRun\servers\default
    [ a path where server is installed ]
    while I want to save it at directory
    c:\testing\uploadfiles
    How can I achieve this???
    waiting for quick reply..
    KasPak

    here is a function for which u said,
    protected void readAndSaveFile(MultipartInputStreamHandler in,
    String boundary,
    String filename,
    String contentType) throws IOException
    A utility method that reads a single part of the multipart request that represents a file, and saves the file to the given directory. A subclass can override this method for a better optimized or differently behaved implementation.
    again saving a file, or uploading a file is no problem,
    but saving a file at our desired location,
    nd this can only be done if we know reall/absolute path of our application at server,
    i-e we need an API which can tells the absolute path of our application.
    e.g
    our application url is http://kaspak/testcode
    we need its absolute mapping to directory on server
    e.g it it is at c:\testcode
    if we get the absolute path then we can pass it in above function or in File class constructor.
    isn't it??
    I think in this way i can save file at other location.
    But how i can get absolute path?????
    thanks for ur reply,
    nd waiting for ur reply again.
    wbw
    kaspak

  • How can I retrive the first sender?

    Hi Guru.
    So this is my scenario:
    JDBC_System, here starts the process, "sends" some data to a BPM.
    The BPM call a custom RFC in the R3_System.
    When the R3_System sends the response, I lost the "original sender" (in this case JDBC_System) because the sender is R3_system and receiver is the BPM.
    So, I need the "original sender" (JDBC_System) because I need to send an alert to some people.
    I cannot modify the RFC in SAP System.
    In the future I can have more JDBC_system and for each JDBC_System and I need to send an email to several users.
    How can i do this?
    Thanks thanks guru.
    Bye
    Manuel

    > well the simplest solution would have been to get the
    > sender system via dynamic configuration,pass that
    > onto RFC and then get it back .
    > but since you can't modify RFC i can think of a dirty
    > work around.
    > design one data type with a two tags <Sender> and
    > <UniqueID> and use it on the receiver side,in message
    > mapping get the sender system and map it to <Sender>
    > and map the unique ID of actual message to
    > <UniqueID>,now configure one more receiver in
    > Receiver determination and simply drop this <Sender>
    > and <UniqueID> in some table on R/3(via another
    > dummy ZRFC) ,once you get back the response,do a RFC
    > lookup based upon this <UniqueID> ,get the <Sender>
    > value and then populate it in response message
    >  mapping.
    > t definitely is a dirty work around,other experts
    > might have better solution,but as of now,thats all i
    > can think of
    > Thanx
    > Aamir
    What do you mean with <UniqueID> is the message ID of the first step (JDBC to BPM) or is a "cross id" for all the step in the flow?
    Thanks
    Manuel

  • How can i obtain the server root?

    Hello everyone,
    im searching for an method which will return an String representation of the server root.
    Something like c://usr//sap//(instance)//...
    Does the WebDynpro provide such a method and where can i find this method?
    Please help if someone knows a method which will provide this information.
    Thanks a lot!
    kind regards
    Fabian
    Edited by: Fabian Eidner on Apr 1, 2008 7:11 PM

    Hi,
    You can use some third party tools like LicenseCrawler which pull all the software installed on windows with license key.License Crawler is a portable
    app that requires no installation. Simply download and run the application; however, you will need admin rights to run LicenseCrawler . When
    you run LicenseCrawler , it literally will crawl (scan) your computer’s registry for the license keys.
    Please fine below link for more detail
    http://whatsonmypc.wordpress.com/2010/07/23/license-keys/
    Regards
    Soni K

  • How can I remove the wrong "sender" from emails sent to myself?

    I recently contributed to a Kickstarter program and since that time whenever I send myself an email from my iPhone, the sender is listed as Kickstarter. When I expand the sender, my email is also listed. This only happens when I send emails from my iPhone and only when I send emails to myself. Desk top and tablets work fine. I restarted my phone to see if the problem clears but the issue is still there. Any thoughts?

    Thanks for your suggestion. Tried but didn't work, but I did find a fix. Open the email with the incorrect sender. Expand "from" by tapping ">". Then tap edit in the upper right of the screen. The company (in my case Kickstarter) appears, select delete, then save your changes. Gone!

Maybe you are looking for

  • My new Mac Mini

    I just got my new Mac Mini the other day and my first observation is that the fan is dead quiet and the unit doesn't get even hot. Fantastic!! I've copied my applications and files from my Mac Pro desktop and I'm ready to connect it to my projector a

  • Purchase order for KIT item

    Hi, my requirement is to raise Purchase order for KIT item.For Example-- For 1 Kit item A, including 1 table and 4 chairs. Define components (table and chair) for item A by using Bills of Material screen. In Order Management, when user orders 100 ite

  • Tax - Michigan New Employers FUTA Debt Repayment Tax

    Hi, My client has implemented SAP note 1422655.  The note states to configure unemployment tax type 11 for Michigan state BEFORE applying the instructions of the note.  The configuration for tax type 11 for Michigan were not released to PRD before ap

  • Question about ADF Table's detailStamp component..

    Hi, I've written a skin... The thing is I want that table placed inside detailStamp component to have a bit lower height rows than the containing table.. but keeping the same skin. Is it possible somehow? It's very urgent..

  • Extension Builder 1.0.1 Posted

    Hi all, We've just released a new build of ExtensionBuilder, 1.0.1, to the Eclipse update site at http://cssdk.host.adobe.com/cssdk/update/ If you've already installed Extension Builder, you can get this by selecting Help > Check for Updates and foll