Пример #1
0
        public void SendAnswer(Answer answer)
        {
            TCPConnection conn = null;

            lock (interLocker)
            {
                conn = connection;
            }

            if (conn != null)
            {
                conn.SendAnswer(answer);
            }
        }
Пример #2
0
        public static bool SendAnswer(Answer answer)
        {
            TCPConnection conn = AdvancedAnswerInfo.TakeConnection();

            if (conn != null)
            {
                conn.SendAnswer(answer);
                return(true);
            }
            else
            {
                return(false);
            }
        }
Пример #3
0
        public bool SendAnswer(Answer answer)
        {
            lock (interLocker)
            {
                if (sent)
                {
                    return(false);
                }
                else
                {
                    sent = true;
                }
            }

            connection.SendAnswer(answer);
            return(true);
        }