Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jul 2010
    Location
    Oregon City
    Posts
    280
    Thanks
    5
    Thanked 50 Times in 49 Posts

    VB.NET somehow listen for event?

    Ok, so..

    I have a script on my server that backs up files every 12 hours and stores them in a protected web directory. I have no problem making connection to the directory, checking for new backups, and downloading them.. At the same time the backup occurs, I have a php script run and update the backup version file and the vb app downloads the latest backup according to that.

    What I would like to be able to do is somehow have my application listen for a command or even a single packet sent from my PHP script or server itself to initiate downloading the backups. Is this possible? What will I need to do?

  • #2
    Senior Coder alykins's Avatar
    Join Date
    Apr 2011
    Posts
    1,718
    Thanks
    41
    Thanked 191 Times in 190 Posts
    you can listen to a port for a message ref... That is C# but .net supports C# and vb so I assume you can find something easily for vb... the key words i used were C# listen packet port (i don't say that to be a jacka**; I know from personal experience that sometimes know what to look for can make a difference)

    let me know if that's what you need; i know it can be done i used to send PLC packets over devicenet to a converter that sent a packet on a multicast network and was picked off by a .net app

    I code C hash-tag .Net
    Reference: W3C W3CWiki .Net Lib
    Validate: html CSS
    Debug: Chrome FireFox IE


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •