예제 #1
0
        /// <summary>
        /// Inicia tentativa de conexão com o servidor
        /// </summary>
        public void BeginConnect()
        {
            switch (Cfg.ProtocolType)
            {
            case Enums.ProtocolType.TCP:
                connectModule.BeginConnect();
                break;

            case Enums.ProtocolType.UDP:
                // udp não é baseado em conexão
                //    throw new Exception("Este protocolo não pode estabelecer uma conexão");
                break;

            case Enums.ProtocolType.SDP:
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }
        }