Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Design and Architecture
  4. creating a polling system

creating a polling system

Scheduled Pinned Locked Moved Design and Architecture
tutorialsysadminhelpquestionannouncement
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    uglyeyes
    wrote on last edited by
    #1

    Hi! I am not sure where should I post this topic. I just need an idea about my task below a central server polls from a legacy server for media updates. the media file has incremental file name i.e 1.mpeg, 2.mpeg and so forth. central server needs to poll the legacy server and check for update via ftp. once it finds update it needs to copy the files and bring into central server from legacy server and distribute to its 600 clients. each client plays those mpegs constantly and central server needs to update the content in clients playlist automatically. for example clients current playlist could be 1.mpeg 2.mpeg and so forth. how do i keep adding the updated file to the play list and keep deleting if the files are more than 20 i.e. play 1-20 and as soon as it hits 21 delete old files please help i dont know how to acheive this and which what program. thanks in forward. please just give me an idea how to achieve this

    U 1 Reply Last reply
    0
    • U uglyeyes

      Hi! I am not sure where should I post this topic. I just need an idea about my task below a central server polls from a legacy server for media updates. the media file has incremental file name i.e 1.mpeg, 2.mpeg and so forth. central server needs to poll the legacy server and check for update via ftp. once it finds update it needs to copy the files and bring into central server from legacy server and distribute to its 600 clients. each client plays those mpegs constantly and central server needs to update the content in clients playlist automatically. for example clients current playlist could be 1.mpeg 2.mpeg and so forth. how do i keep adding the updated file to the play list and keep deleting if the files are more than 20 i.e. play 1-20 and as soon as it hits 21 delete old files please help i dont know how to acheive this and which what program. thanks in forward. please just give me an idea how to achieve this

      U Offline
      U Offline
      uglyeyes
      wrote on last edited by
      #2

      anyone please?

      P 1 Reply Last reply
      0
      • U uglyeyes

        anyone please?

        P Offline
        P Offline
        Pradeep Shukla 0
        wrote on last edited by
        #3

        You have issues to resolve; 1- How to get latest file from FTP? 2- How to add it in playlist and keep thecount up to 20? Ans 1- You can use a windows service to keep on checking the FTP location for any new file avaialble. If you get any updates using some FTP client you can download it. Ans 2- a) Adding newly downloaded file in the playlist depends mostly on the player that you are using. There should external functions avaialble to call. b) This has some trick. Its like a queue where you can not hold more than 20 items. Use simple arraylist for the files to hold and when the count goes up, remove the top 1. You can start with this.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups