public override QResponse Dispatch(QueryServerContext Context,
                    TicketData TicketData)
        {
            CredentialPasswordResponse Response = new CredentialPasswordResponse();

            return Response;
        }
        public override QResponse Dispatch(QueryServerContext Context,
                    TicketData TicketData)
        {
            AdvertiseResponse Response = new AdvertiseResponse();

            return Response;
        }
Beispiel #3
0
        public QueryServer(Transport TransportIn, string Domain, string Address, int Port,
                        int Priority, int Weight)
        {
            // set transport
            Transport = TransportIn;

            // Set up the QueryServerConnection
            QueryServerConnection = new MasterQueryServerConnection ();
            QueryServerConnection.Transport = TransportIn;
            QueryServerConnection.Domain = Domain;
            QueryServerConnection.Address = Address;
            QueryServerConnection.Port = Port;
            QueryServerConnection.Priority = Priority;
            QueryServerConnection.Weight = Weight;

            Context = new QueryServerContext (QueryServerConnection);

            QueryServerConnection.MasterSeed = MasterSeed;
        }
 public virtual QResponse Dispatch(QueryServerContext ConnectionServerContext,
                 TicketData TicketData)
 {
     return null;
 }
        public override QResponse Dispatch(QueryServerContext Context,
                    TicketData TicketData)
        {
            ValidateResponse Response = new ValidateResponse();
            Response.Status = 200;

            return Response;
        }
        public override QResponse Dispatch(QueryServerContext Context,
                        TicketData TicketData)
        {
            QueryConnectResponse Response = new QueryConnectResponse();

            // If we were doing this properly we would do a DNS lookup
            // (via a cache of course) to resolve the parameters here

            Response.Connection = new List<Connection> ();

            Response.Connection.Add (new Connection (
                "10.3.2.1", 443, "TLS", "TLS=Optional", "Strict"));
            Response.Connection.Add (new Connection ("10.3.2.1", 80, null, null, "Strict"));
            Response.Status = 200;

            return Response;
        }