Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Sending information between MasterServer and Client

Discussion in 'Multiplayer' started by chemasalamanca, Dec 22, 2008.

  1. chemasalamanca

    chemasalamanca

    Joined:
    Dec 22, 2008
    Posts:
    5
    Hi,
    I am trying to send some information between the MasterServer and my client application (coded in javascrip) but I don´t know how... (I have no problems to obtain the servers list).
    I want to send some more information from the masterServer to the client, when the client connects the masterServer to get the server list.
    Has anyone an idea of how can I connect both of them?
    RPCs, Send method from RakPeerInterface? How can I receive and send information between masterServer (write in C) and my client (javascrip)?
    Could you give an example please?
    Thanks
     
  2. MikeHergaarden

    MikeHergaarden

    Joined:
    Mar 9, 2008
    Posts:
    1,027
    I'd use the default masterserver implementation and use the extra fields (there are field for password, comment..and a few more).

    You can store several options in the comments field for example...just seperate them by # or so.
     
  3. chemasalamanca

    chemasalamanca

    Joined:
    Dec 22, 2008
    Posts:
    5
    Thanks, that´s a good idea... indeed I was trying to modify de LightweightDatabaseServer.cpp to do something similar as you have just proposed. I hope it works.
    If someone has other idea please let me know.
    Thanks =)