Updating Coordinates to All Clients

Hey all. I was just wondering if someone could give me an outline, or a VERY general explanation of how i should organize this. What I am doing is whenever a client connects to my server (via an applet) they will be able to move a box around with the arrow keys, and they will be able to see everyones boxes that are connected to the server. I'm also not sure whether to use TCP or UDP for this. I'm not sure which is more efficient for a project like this.
I am not asking anyone to program anything for me, I understand how the mechanics of my game are going to work, and i've already built a single player version, except slightly more complicated with a rotating image. I also understand how Sockets, and ServerSockets, and all that stuff works as well. The thing i really need help with is structure and organization of my networked program.
1) Structure
2) TCP vs UDP
I'm looking for something along the lines of this.
Server
*Accepts connections
*Sends connection to a World Object
Client
*Tries to connect to the Server
*Runs the listeners and moves character
*Sends position to server (or something, this is where i'm having trouble, how to update the positions of all my characters)
*Receives others positions(?)
World
*Receives connections and coordinates and relays them to other clients.(?)
*Keeps world attributes to send to other clients(?)
How might one go about tranferring a set of numbers to all clients connected to a server. If in the server i have an ArrayList of sockets to send them to?
Thanks so much for reading this, and i would really appreciate a reply!
Message was edited by:
PaRlOaGn

Well, yes i understand what you're saying, just write the info to output stream. But sending the soldiers coordinates from the client to the server.. I'd need to send some sort of custom packet class through an object stream? Here let me explain: if you have multiple clients connected, say 6 people. And i have an ArrayList of coordinates, the client has to KNOW it's position in the ArrayList for starters, then send it's position logged with it's current coordinates through an output stream, then send the WHOLE ArrayList to all the clients once it reaches the server... i'm just confused as to a good way to do that.. I understand how streams work... yeesh.

Similar Messages

  • Windows Server 2012 Essentials (not R2) - all client computers offline

    The server is Windows Server 2012 Essentials (not R2). I have had this problem ever since I first installed the Windows Server 2012 Essentials server in the summer of 2013 (before R2 was released). The Windows Server 2012 Essentials server shows offline
    for all Devices under Dashboard. (Allow me to add that I just installed another site with Windows Server 2012 Essentials R2, and it was a breeze - all of the computers at the second install site are online.) I have one Windows 8.1 Pro client and the rest
    are Windows 7 Pro clients. The problem occurs on ALL client computers.
    I have removed computers from Devices in Dashboard on the server, rebooted the server, changed the client computer to a workgroup, rebooted the client computer, and reinstalled the connector software on the client computer. Same result. I
    have tried this on a Windows 7 Pro client and a Windows 8.1 Pro client with the same results.
    After running the connector on a client computer and waiting for the server to update its Devices status, if I look under Devices on the server Dashboard, the Windows 8.1 client computer will say online but within 24 hours it goes offline again. The
    Windows 7 client computers never show online. Both computers stay offline - they NEVER show an online status (referring to the status under Devices in Dashboard).
    I should make it clear that the clients can access the server shares with no problem. File synchronization works great. The clients can ping the server and the server can ping the clients. But client backups on the server fail.
    One of the most troublesome things about this problem is that it prevents the client computers from being accessed remotely using the website setup by Anywhere Access. I can login to get remote access to the shared files on the server, but
    the only computer that says "online" is the server. All of the other computers are "offline".
    The server and clients are only using Windows firewall. The clients all use Microsoft Security Essentials for their anti-virus.
    I used a troubleshooting tool that tells me that there are problems with port 6602 on the server, but the clients are all fine with port 6602. I know port 6602 is important for using Anywhere Access but I am still trying to find out more details on that.
    I have checked all of the firewall settings related to port 6602 on the server, and the firewall settings look like the standard Windows settings for this port. I used netstat to find the PID associated with the port, and I looked up the PID to find the service.
    That all looked standard, too.
    I have been working on this problem since the summer of 2013!! Does anyone have ANY suggestions?!!
    HELP!

    Hi,
    Just addition, please check if all necessary Windows updates are installed on those
    “Offline” client computer.
    When connect client computers to the Windows Server 2012 Essentials server by using the Connector software, there
    will be LAUNCHPAD on the client computer. Was this LAUNCHPAD grayed out? Please check if can access Shared Folders via this LAUNCHPAD. Meanwhile, please ping the Windows Server 2012 Essentials via IP address and server name when client computers show as
    Offline. Any find?
    Get Connected in Windows Server Essentials
    In addition, please follow the path on Server and client computer:
    %programdata%\Microsoft\Windows Server\Logs. Did you check any relevant Server-side logs and
    Client-side Logs if find more clues?
    Windows
    Server Essentials 2012/2012 R2 Log Files
    If any update, please feel free to let us know.
    Hope this helps.
    Best regards,
    Justin Gu
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • 10.4 Server - software update server - push to clients

    Hello all, after some advice.
    Weve recently built up a 10.4.7 Server running among other services, Software Update. We've been successfull in pushing out managed pref's to clients to retarget their update server etc, updates are working so thats fine..
    heres the issue. most of our mac clients arent admins, they are regular users, thus every time an update needs to install - it will prompt for an admin user's credentials, which we cant have happening.
    Is there a way, to configure either the update server or the clients, to receive updates and install them silently for instance? with no user intervention?
    One way im considering, its a bit messy though, is using apple remote desktop to issue a UNIX command to all selected Mac's, telling them to launch 'softwareupdate -i -r' and execute as root (afaik, you need to be root to execute softwareupdate manually or something) But this seems flaky in testing so far.
    Thanks for any help.
    Eliot.

    Excellent thanks for the suggestions guys... Ive been playing with the cron suggestion to begin with, it seems to work, as in it will download and install recommended updates. Although with the particular update I was trying to install, it didnt seem to follow through correctly.
    it was the latest firmware update for the INTEL iMac's, according to software update via the terminal, it had downloaded and installed the update, and then required a reboot. ok, but after reboot, it hadnt kicked into the firmware install mode. I actually had to download this update via the gui software update in order for it to function correctly, ie reboot, install firmware, reboot again. which is odd?? could be a problem for future updates like this, when using an automated cron task for updates? Or am I just missing something, hehe?
    Otherwise yeah, the ARD option sounds interesting, we're about to purchase ARD3, definately worth a look.

  • Remove the updates Installed to the client from WSUS SERVER

    WSUS Server running on the Windows Server 2008 R2. Is there a way to get rid of updates that have been pushed out and installed on all client computers? because currently I am running out of disk space and I really don't want to increase the disk space
    further more.
    I tried the Server Cleanup Wizard but it didn't help much as it only cleans out unnecessary and declined updates.

    Hi,
    On current situation, please refer to the following article and check if can help you.
    What
    to do when your WSUSContent folder grows too large
    Based on your description, I understand that you know which updates had been installed. In other words, you
    know which updates will never be used. In WSUS server, please navigate to those updates and right click them, then select
    Decline. (Please note: if have downstream replica servers,
    please don’t Decline these updates directly). Then please run the Server Cleanup Wizard again and monitor the result. If anything I misunderstand, please don’t hesitate to let me know.
    In addition, this issue seems to be more related to WSUS configuration. As Dave suggested, posting this question
    in
    WSUS Forum will be better. I believe we will get a better assistance there.
    If any update, please feel free to let us know.
    Hope this helps.
    Best regards,
    Justin Gu

  • Capture Coordinates of All Content with a PDF

    Is it possible to have a script extract the coordinates of all content - mostly vector paths (lines and curves) from specific layers of a pdf and to export that information to an XML file? I would also need it to include the color and lineweight information.
    I have noticed comments where you can get the quadrants of text using "getPageNthWordQuads."  I am looking for something similar where I can extract all paths, lines, shapes and other objects within the pdf.  This can be achieved in Adobe Illustrator using a script but I am looking for something web-based if possible.
    Thanks,
    Rebecca

    Actually Acrobat doesn't handle ActionScript in the way you seem to be suggesting - you can't script at the document-level with AS like you can with JavaScript.  Acrobat now comes with an embedded Flash engine which will allow you to render document-level Falsh content even if the client machine doesn't have Flash Player installed, and also allows you to interact with the Flash content but you cannot simply write script in AS and embed that in a PDF.  None of the interfaces that you can import into your Flash content to interact with the PDF will allow you this level of access either.
    As I mentioned earlier, the only way you could do this is with a plug-in written in C/C++.

  • Updates not installed on client computer

    Hi, I have become regular on this forum. I simply follow along what other people have done (books, videos) but it does not work for me. I added WSUS role to my SCCM server, then installed Software Update Point role, configured all necessary settings
    and started Synchronize Software Updates process (security, critical and definition updates only for Windows 7). I checked log
    wsyncmgr and I found line: sync: SMS synchronizing updates, processed 829 out of 829 items (100 %)
    Next, I created Software Update Group with only no-expired, no-superseded updates as members and as final step I deployed this group to test collection with only one Windows 7 machine as a member. Updating process should
    have started very soon (both Software available time and installation deadling have been set to
    As soon as possible) but whole night have passed and I saw this morning that nothing happened on client machine. Since this client computer has been installed last week
    automatic updates was turned off so I turned it on - I do not know whether it is necessary since in logs communication between client and SCCM has been successfully established even before I did this. I went to Control Panel - Windows
    Update and saw Windows is up to date but in the list of installed updates there are no updates synchronized on SCCM (I was looking for updates based on KB). Also I can change settings for update process - it is not grayed-out as it used to be with "normal"
    WSUS server.

    I found what happened. I was right that only "old" updates were filtered out (I do not know why SCCM did not include newer updates too since I filtered out updates which were not superseded, not expired, for product Windows
    7 and bulletin ID contained MS) - having been filtered out I put them into new software update group and deployed group to a collection. I run
    machine policy retrieval & evaluation cycle, software updates deployment evaluation cycle and software updates scan cycle on clients but nothing happened.  
    I run filter on all software updates again (the same criteria as before) and there were much more updates meeting criteria - I downloaded them into existing package and later added them into existing software update group where these "old" updates
    were. I run machine policy retrieval & evaluation cycle, software updates deployment evaluation cycle and software updates scan cycle on clients and update process started. Having finished updating, I restarted clients and in
    Control Panel - Windows Update all installed updates were there and their KBs were correct.
    If update settings in CP can be changed but it does not affect update process (it is controlled by SCCM client agent) I am fine with that. Also one thing I noticed also - while update process is in progress on client, user in Software Center could potentially
    click on any update which were installed and required restart and click RESTART button in lower-right corner. I did not try this since it might have restarted machine thereby interrupting installation of other updates. This could be potentially big
    problem - restart button would have not been there and available while update process had been in progress.
    https://onedrive.live.com/redir?resid=670BDDFCE8F2477A!474&authkey=!AGDuWP9z9hLqMBk&v=3&ithint=photo%2cpng

  • SCCM 2012 - How to add domain id to local administrator group of all clients

    SCCM 2012 - How to add domain id to local administrator group of all clients
    Hi,
    i have a domain id sccmadmin which is a part of domain admins group too.
    Need to add this ID to the local administrators group of all clients. How do I do this? Please help!

    Hi ,
    you need to choose the second option .
    First option will remove all the domains users from the local administrator group available in all the PC'S .Then local administrator group will only have the users updated on the members list present in group policy.
    Note : Local admins accounts on the local administrators groups will not be removed.
    Second option will add the newly created group to the local administrator group in all the PC'S and it will not remove the existing members in the local administrators group.
    Step 1 : Just try to create one new group for SCCM management .
    Step 2 : Then add the SCCM account to that group.
    Step 3 : Then please create a new group policy on that just choose the second option.On that option just add the newly created group to be an member of administrator group in all the PC'S
    Why i have asked you to create a new group ?
    Because in second option , we don't have a option to add a individual user .
    Once you have created a group policy it will like below snap.
    As an additional i will tell how to find the newly created group policy is applying to computer objects or not ans also i will tell you how to force update the group policy 
    1.gpresult /r ----> To find the which group policy is applying on user and computer object .
    2.rsop.msc ----> There you can able to find the change has been applied or not .
    3.gpupdate /force -----> Forcefully updating the group policy in a client machine 
    4.In gpmc.msc there is one option called group policy results .That option will be used for centralized management to find the policies that are applied to a user and computer account.
    5.Just check the event viewer in all the PC'S for group policy related events.
    Most importantly you need to make sure all the computer accounts are placed in an ou ,where the newly created group policy is applying and also make sure that OU doesn't contain any inheritance block.
    Please feel free to reply me if you have any queries.
    Thanks & Regards S.Nithyanandham

  • Password reset for all clients

    Hi
    I need to Reset Password on ALL clients within current system for logged on User.
    Any suggestions please
    Thanks
    Regards

    Got a Program for this. Am just pasting the code..try it
    TABLES: T000, USR02.
    DATA: BEGIN OF I_USR02.
            INCLUDE STRUCTURE USR02.
    DATA: END OF I_USR02.
    SELECTION-SCREEN BEGIN OF BLOCK STANDARD
                     WITH FRAME TITLE TEXT-001
                     NO INTERVALS.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT (23) TEXT-005.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT (23) TEXT-004.
    PARAMETERS NO RADIOBUTTON GROUP RAD1.
    SELECTION-SCREEN COMMENT (23) TEXT-002.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT (23) TEXT-005.
    PARAMETERS YES RADIOBUTTON GROUP RAD1.
    SELECTION-SCREEN COMMENT (23) TEXT-003.
    SELECTION-SCREEN END   OF LINE.
    SELECTION-SCREEN END OF BLOCK STANDARD.
    MAIN PROGRAM
      IF NO = 'X'.
        MESSAGE I999 WITH
         'Program Terminated at User Request'.
        LEAVE PROGRAM.
      ELSE.
        PERFORM CHANGE_PASSWORD.
        SELECT * FROM T000.
          SELECT * FROM USR02 CLIENT SPECIFIED
             WHERE MANDT = T000-MANDT AND
                   BNAME = SY-UNAME.
            IF USR02-MANDT = SY-MANDT.
              WRITE : 1 USR02-MANDT COLOR 6 INVERSE.
              WRITE : 5 USR02-BCODE COLOR 6 INVERSE.
            ELSE.
              WRITE : 1 USR02-MANDT COLOR COL_KEY INTENSIFIED.
              WRITE : 5 USR02-BCODE COLOR COL_BACKGROUND INTENSIFIED OFF.
            ENDIF.
            IF USR02-UFLAG = 0.
              WRITE : 24 'Not Locked' COLOR COL_BACKGROUND INTENSIFIED OFF.
            ELSEIF USR02-UFLAG = 64.
              WRITE : 24 'Locked: System Admin.' COLOR 6 INVERSE.
            ELSEIF USR02-UFLAG = 128.
              WRITE : 24 'Locked: incorrect Logons.' COLOR 6 INVERSE.
            ELSE.
            ENDIF.
            WRITE : 50 USR02-TRDAT COLOR COL_BACKGROUND INTENSIFIED OFF.
            WRITE : 61 USR02-CLASS COLOR COL_BACKGROUND INTENSIFIED OFF.
            NEW-LINE.
          ENDSELECT.
        ENDSELECT.
      ENDIF.
    TOP-OF-PAGE.
      NEW-PAGE NO-TITLE NO-HEADING.
      PERFORM LISTTITEL.
    TOP-OF-PAGE DURING LINE-SELECTION.
      PERFORM LISTTITEL.
          FORM CHANGE_PASSWORD                                          *
    FORM CHANGE_PASSWORD.
      SELECT * FROM USR02 INTO I_USR02     "grab userid and store data
        WHERE BNAME = SY-UNAME.
      ENDSELECT.
      IF SY-SUBRC NE 0.
        EXIT.
      ENDIF.
      UPDATE USR02 CLIENT SPECIFIED        "Write current client pwd over
         SET                               "other clients that have id in.
          BCODE = I_USR02-BCODE
          OCOD1 = I_USR02-OCOD1
          CODV1 = I_USR02-CODV1
          OCOD2 = I_USR02-OCOD2
          BCDA2 = I_USR02-BCDA2
          CODV2 = I_USR02-CODV2
          OCOD3 = I_USR02-OCOD3
          BCDA3 = I_USR02-BCDA3
          CODV3 = I_USR02-CODV3
          OCOD4 = I_USR02-OCOD4
          BCDA4 = I_USR02-BCDA4
          CODV4 = I_USR02-CODV4
          OCOD5 = I_USR02-OCOD5
          BCDA5 = I_USR02-BCDA5
          CODV5 = I_USR02-CODV5
          CODVN = I_USR02-CODVN
          TRDAT = I_USR02-TRDAT
          LTIME = I_USR02-LTIME
          BCDA1 = I_USR02-BCDA1
         WHERE BNAME = SY-UNAME AND
               MANDT NE SY-MANDT.          "Every client but current.
    ENDFORM.                               "CHANGE_PASSWORD
          FORM LISTTITEL                                                *
    FORM LISTTITEL.
        WRITE: / 'List of client(s) on which the Password for User',
                SY-UNAME COLOR COL_KEY INTENSIFIED,
               'has been reset.'.
      WRITE: / 'Password originated on Client : ',
                SY-MANDT COLOR COL_KEY INTENSIFIED.
      SKIP.
      WRITE: / 'System: ' COLOR COL_HEADING INVERSE,
               20 SYST-SYSID COLOR COL_KEY INTENSIFIED.
      WRITE: / 'Date:  ' COLOR COL_HEADING INVERSE,
               20 SYST-DATUM COLOR COL_HEADING INVERSE.
      WRITE: / 'Time:   ' COLOR COL_HEADING INVERSE,
               20 SYST-UZEIT COLOR COL_HEADING INVERSE.
      ULINE AT (73).
      WRITE: /(73) SPACE COLOR COL_HEADING INTENSIFIED.
      WRITE: 1 'Cl.' COLOR COL_HEADING INTENSIFIED.
      WRITE: 4  SY-VLINE.
      WRITE: 5 'Encrypted Password' COLOR COL_HEADING INTENSIFIED.
      WRITE: 23 SY-VLINE.
      WRITE: 24 'Lock Status' COLOR COL_HEADING INTENSIFIED.
      WRITE: 49 SY-VLINE.
      WRITE: 50 'Last Used' COLOR COL_HEADING INTENSIFIED.
      WRITE: 60 SY-VLINE.
      WRITE: 61 'User Grp.' COLOR COL_HEADING INTENSIFIED.
      WRITE: 73 SY-VLINE.
      ULINE /(73).
    ENDFORM.                               " LISTTITEL
    Regards

  • Cannot update b/c all playlists no longer exist

    I cannot update my iPod. This is the error message I continually get when I try. 'Songs on the iPod "Aimee's iPod" cannot be updated because all of the playlists selected for updating no longer exist.' I can see the playlists on the iTunes screen but when I tried to update it removed all songs from my iPod completely. I have tried reinstalling the iTunes software and the problem persists. Does anyone have any ideas. I have searched the Apple support website and cannot resolve. Thank you, in advance, for any assistance provided.
    Aimee
    Dell Dimension XPS   Windows XP  

    http://discussions.apple.com/thread.jspa?messageID=607312&#607312

  • I backed up my ipod. I then updated it but all of my data is still gone. How do I get my data back??

    I backed up my ipod. I then updated it but all of my data is still gone. How do I get my data back??

    Were the app in your iTunes library? If not the app data in the backup has no place to go. Redownload the apps in your iTunes libaray
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    and then restore from backup.
    iOS: How to back up and restore your content
    Otherwise, try restoring from backup again.
    If still problem that means the backup does not include the data.

  • I am trying to purchase an app and update my apps all are free but it won't accept my security code, all itkeeps saying is that my payment method has been declined, I only have one card so can't try another

    I am trying to purchase an app and update my apps all are free but it won't accept my card, all it keeps saying is that my payment method has been declined, I only have one card so can't try another. Now I can't use some of my apps because they are waiting to be updated. Somebody please help!!

    Hello Sriggers,
    Welcome to the Apple Support Communities!
    I understand that you are attempting to update some applications on your iPhone but the payment method was declined. In this situation, I would recommend reading over the information in the attached article to help resolve the situation. 
    Pay an unpaid balance in the iTunes Store - Apple Support
    Best,
    Joe

  • I did my ios7 update and lost all my old text messages, how do I get them back?

    I did my ios7 update and lost all my old text messages, how do I get them back?

    Try this
    http://support.apple.com/kb/HT1414

  • TS1702 my ipod & itunes are fully up-to-date with 4.2.1 for ipod and the itunes 11.0.1 and every app (ex facebook & ice cream jump says i need 4.3 version but when i click all updates say its all up to date. I have tryed restoring it 4 times to factory as

    my ipod & itunes are fully up-to-date with 4.2.1 for ipod and the itunes 11.0.1 and every app (ex facebook & ice cream jump says i need 4.3 version but when i click all updates say its all up to date. I have tryed restoring it 4 times to factory as well. Please help I have set-up over 10 ipods and differents generations and have never had this issue like this, I even have all ratings ristriction unchecked and payment info in itunes so i need help please

    but i could download on others ipods in same gen, facebook and ice cream tower, everything i look up and try install always says that for apps so your saying that i can not ever download any apps to this ipod ever againÉ

  • Mail 2.0.5 CRASHES ON OPEN after Security Update 2005-009(Tiger Client)

    I'm trying to figure out how to fix this.
    I rebooted into a techtool pro e-drive and repaired permissions (as well as some other repairs to the drive, etc), but it still is crashing.
    I created a new user and opened mail just fine there.
    So... it is something in my account. Not sure exactly what to do next?

    I'm having the same exact problem. (See Mail 2.0.5 crashes when I get new mail). I deleted my preferences & my junk mail settings, to no avail.
    A remarkable number of other people are posting with similar problems, just in the past week or so alone, and as far as I can tell, no one has figured it out. There is definitely a bug here. I have a hunch that it may be related to a recent software update. I'm going to post this to the other threads in hopes of garnering some attention from Apple.
    For posterity's sake, I am connecting to a Gmail account, a POP account, and a .Mac account.
    See also:
    Mail keeps crashing
    mail 2.0.5 CRASHES ON OPEN after Security Update 2005-009(Tiger Client)
    Mail crashes immediately after opening--why?
    Mail Crashes CONSTANTLY!
    Mail quits when launching
    Mail crashes at open
    Mail crashes when downloading new mail.

  • Is there any table in data dictionary has all clients and their email ids?

    Is there any table in data dictionary has all clients and their email ids?

    Hello,
    KNVK-ADRNP_2
    use this to pass to the bapi BAPI_BUPA_ADDRESS_GETDETAIL. this is function module & will return the address details in diff itabs..
    You can also try the Table ADR6 field SMTP_ADDR where ADDRNUMBER = KNVK-ADRNP_2.
    *************Reward points,if found useful

Maybe you are looking for

  • [CLOSED] snd-hda-Intel model mono/stereo and alsamixer issues

    DROPPED: I just installed the Windows disc that came with the laptop and the official drivers, while they work better (a 6 channel wav plays fine in the speakers, linux only plays 2 of them) the most important issues like mono output only in the head

  • JDBC, Oracle: access denied

    I can load Oracle driver Class.forName("oracle.jdbc.driver.OracleDriver"); But in this string: String url = "jdbc:oracle:thin:@195.52.61.6:1521:ORCL"; java.sql.Connection con = java.sql.DriverManager.getConnection(url, "SCOTT", "TIGER"); happens exce

  • Q190, no audio with HDMI

    I purchased the Q190 with Windows 8 and upon connection to my Samsung smart TV via a HDMI cable I have no audio. picture is great but no sound anyone have the solution to this issue.

  • GRC AC 10 (BRM) Risk Analysis Report type is editable

    Hi, In  GRC10 – BRM  Risk analysis at "Action Level", "Permission Level", "Critical Action", "Critical Permission" and "Critical Role/Profile" is editable. When i start to create a role in the Risk Analysis step, Permission Level is always selected .

  • HT4859 what about if your screen no longer works, but can power up and connect to iTunes.

    I have the Ensight app of Secret Photo+Folder and only have pics on a secret folder and not in regular photo folder to avoid others from seeing private pics(hence the reason for the app).  However, since the death of the screen, I cannot get to the f