Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7418699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:55:58+00:00 2026-05-29T07:55:58+00:00

Here we have the Connect(); function: public static void Connect(string username, string password, string

  • 0

Here we have the Connect(); function:

public static void Connect(string username, string password, string roomName, string roomType, string roomID, string roomPass, bool roomVisible)
{

    Console.WriteLine("[Bot] Trying to login...");
    PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", username, password,
        delegate(Client client)
        {
            Console.WriteLine("[Bot] Logged in. Trying to join the room...");

            Dictionary<string, string> roomData = new Dictionary<string, string>();
            Dictionary<string, string> joinData = new Dictionary<string, string>();

            roomData.Add("editkey", roomPass);
            roomData.Add("name", roomName);
            joinData.Add("editkey", roomPass);


            try
            {
                con = client.Multiplayer.CreateJoinRoom(roomID, roomType, roomVisible, roomData, joinData);
                if (con.Connected)
                {
                    con.Send("init");
                    con.Send("init2");
                    con.OnMessage += new MessageReceivedEventHandler(OnMessage);
                    con.OnDisconnect += delegate(object sender, string reason)
                    {
                        Console.WriteLine("Disconnected, Error: " + reason);
                    };
                    Console.WriteLine("[Bot] Joined the world.");
                }
            }
            catch (PlayerIOError error)
            {
                Console.WriteLine("Error: " + error);

            }

        },
        delegate(PlayerIOError error)
        {
            Console.WriteLine("Error: " + error);
        });
}

The ultimate goal is to disconnect, and my friend tells me this can be done with the use of a list. I am not familiar with lists, nor do I know how to use them.

What I am asking is to put this in ‘List’ form so that (I’m assuming…) we can use a ‘Clear’ method to possibly disconnect. Or maybe a ‘Remove’ method.

But like I said, I’m not sure how to use Lists at all, so the Clear method might mean something completely different.

Please ask if you need to know more about this function, I’ll try to get back as soon as possible. But from the vague information I have about lists, you don’t need to know every detail of the function.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T07:55:58+00:00Added an answer on May 29, 2026 at 7:55 am

    What your friend is trying to say is that you need to maintain a list of your connections. A List is simply an object that will maintain your references.

    Once you are done with all of the connections you can go through the list and “log off” or otherwise disconnect from those channels.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here I have: Public Structure MyStruct Public Name as String Public Content as String
i have a class: class Connect { public function auth() { ... do something
Here's the scenario: You have a Windows server that users remotely connect to via
Here's the situation: we have an Oracle database we need to connect to to
Here I have a password field: /*********************PASSWORD**********************/ $password = new Zend_Form_Element_Password('password'); $alnumValidator = new
I have some controller logic: public function seafood() { $this->set('title', 'Seafood restaurants in and
I have a project here that connects to an in-production database and grabs tables
enter code here Hi All, I have a simple windows service application that connects
Just wondering what little scripts/programs people here have written that helps one with his
Since upgrading to 2008 I and many people here have noticed that randomly VS

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.