Search Unity

  1. Check out the Unite LA keynote for updates on the Visual Effect Editor, the FPS Sample, ECS, Unity for Film and more! Watch it now!
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  4. Want more efficiency in your development work? Sign up to receive weekly tech and creative know-how from Unity experts.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  6. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

Making a lobby manager

Discussion in 'Connected Games' started by xred13, Sep 16, 2018.

  1. xred13

    xred13

    Joined:
    Jul 14, 2018
    Posts:
    60
    Hello, so i am making a 1v1's game, and my idea for making the lobbies to manage the connection between both players is the following:
    a thread per lobby, with a new socket with an open udp port
    the client would connect to the server and after that he would be redirected to an already existing socket in a thread or create a new thread with a new socket.

    would this work? would it be too annoying for the server, any better ideas? :p

    Thanks.
     
  2. xred13

    xred13

    Joined:
    Jul 14, 2018
    Posts:
    60
    Or maybe having a list / dictionary of threads and have the client give a message about which thread it is and do it with multiple clients through only one socket?