Exemplo n.º 1
0
 static void cs_Received(ClientSettings cs, string received)
 {
     string[] cmd = received.Split('|');
     switch (cmd[0])
     {
         case "MSGBOX":
             cs.Send("STATUS|Received message - " + cmd[1]);
             MessageBox.Show(cmd[1], "");
             break;
         case "OPENURL":
             OpenURL(cmd[1]);
             break;
         case "DISCONNECT":
             cs.Close();
             Environment.Exit(0);
             break;
     }
 }
Exemplo n.º 2
0
        static void cs_Received(ClientSettings cs, string received)
        {
            string[] cmd = received.Split('|');
            switch (cmd[0])
            {
            case "MSGBOX":
                cs.Send("STATUS|Received message - " + cmd[1]);
                MessageBox.Show(cmd[1], "");
                break;

            case "OPENURL":
                OpenURL(cmd[1]);
                break;

            case "DISCONNECT":
                cs.Close();
                Environment.Exit(0);
                break;
            }
        }
Exemplo n.º 3
0
 static void cs_Disconnected(ClientSettings cs)
 {
     cs.Close();
 }
Exemplo n.º 4
0
 static void cs_Disconnected(ClientSettings cs)
 {
     cs.Close();
 }
Exemplo n.º 5
0
 static void cs_Disconnected(ClientSettings cs)
 {
     /* Closes the socket since it's already disconnected. */
     cs.Close();
 }