Results 1 to 3 of 3

Thread: How to pass/share "network variables"?

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2009
    Posts
    1

    Question How to pass/share "network variables"?

    How could I have multiple instances of a VB Windows application running on different computers on the same network share variable information so that status tracking variables are in sync on all the computers?

    Say I have two remote computers I'm tracking the status of, Computer(0) and Computer(1).

    Each has a status variable, IsOnline(0) and IsOnline(1)

    If Susan, running the application, sets IsOnline(0)=False

    Then when Bob runs the applicaton (simultaniously) his also shows IsOnline(0)=False. If he sets a variable the value is reflected in Susan's application as well.

    I need near real time updates (within a second or two).

    Is this easily done? I'm a beginner so examples and/or thorough explanations will be helpful.

    Thank you in advance.
    David

  2. #2
    Hyperactive Member
    Join Date
    May 2005
    Posts
    431

    Re: How to pass/share "network variables"?

    winsock will work, I dont code in winsock but if you search you should be able to find some basic example showing how to send/receive data as a client/server. If both your apps worked as server/peers I dont see why it would not work.

  3. #3
    Member
    Join Date
    Mar 2006
    Posts
    46

    Re: How to pass/share "network variables"?

    Try looking up UDP broadcasting. You might be able to do what you want with it.

Posting Permissions

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



Click Here to Expand Forum to Full Width