B4J Question jnetwork library tutorial

Discussion in 'B4J Questions' started by cstangor, Mar 19, 2015.

  1. cstangor

    cstangor Member Licensed User

    Hi,

    I'm wanting to allow quick messaging from between two machines running B4J. User at machine one sends a message.. that message appears instantaneously in a handler at machine 2.

    Thanks in advance.
     
  2. giga

    giga Well-Known Member Licensed User

  3. cstangor

    cstangor Member Licensed User

    Thanks... It's not the labels I'm concerned about, it's the sharing. I'm trying to figure out how to share information quickly between two machines running B4J.
     
  4. Erel

    Erel Administrator Staff Member Licensed User

  5. cstangor

    cstangor Member Licensed User

    I'm sorry, but where is the AsyncStreams library?
     
  6. cstangor

    cstangor Member Licensed User

    Oh, so I found it in jRandomAccess. But I'm confused.

    What exactly am I doing with these calls? A file is written but I don't understand how the data would be sent to another computer? Sorry!

    Thanks

    Server.Initialize(port, "server")
    client.Initialize("client")
    client.Connect(Server.GetMyIP,port, 30000)

    astreamO.Initialize(Me, "astreamO")
    astreamO.WriteObject("simple value", 3)

    My astreamO_NewObject and astreamO_ObjectSent are not firing.
     
  7. Erel

    Erel Administrator Staff Member Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice