static void SendLoginMessage(Socket _s, String _msg)
        {
            LoginMsg loginMessage = new LoginMsg();

            loginMessage.msg = _msg;
            MemoryStream outStream = loginMessage.WriteData();

            try
            {
                _s.Send(outStream.GetBuffer());
            }
            catch (System.Exception) { }
        }
        public void sendLoginDetails(String loginDetails)
        {
            LoginMsg loginMsg = new LoginMsg();

            loginMsg.msg = loginDetails;
            MemoryStream outStream = loginMsg.WriteData();

            m_Server.Send(outStream.GetBuffer());

            m_MainForm.Invoke(new MethodInvoker(delegate()
            {
                m_MainForm.m_CurrentUserName = loginDetails.Split(' ')[0];
                m_MainForm.SetClientName(loginDetails.Split(' ')[0]);
            }));
        }