spaceconquest.HostScreen.ChatSend C# (CSharp) Method

ChatSend() public method

public ChatSend ( String input ) : void
input String
return void
        public void ChatSend(String input)
        {
            chatlist.AddNewTextLineDefault(20, 200, input);
            Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);

            end = new IPEndPoint(ip, 6114);
            MessageThread mt = new MessageThread(socket, end, input);
            Thread t = new Thread(new ThreadStart(mt.SendRecieve));
            t.Start();
        }