Exemple #1
0
        public WS3V_Protocol(Action<IWS3V_Protocol> _config)
        {
            WS3V_Clients = null;

            RPC = x => { return new RPC_Outgoing(); };
            Subscribe = x => { };
            Unsubscribe = x => { };
            Pub = x => { };
            Sub = x => { };
            SocketSend = x => { };

            server = string.Empty;
            clientID = string.Empty;
            heartbeat = new Heartbeat();
            filetransfer = new Filetransfer();
            pubsub = null;

            authentication_attempts = 3;
            authentication_timeout = 5;
            recovery = false;
            recovery_timeout = 0;
            channel_listing = false;
            headers = null;

            credentials = null;
            Authenticate = x => { return true; };

            config = _config;
            config(this);
        }
Exemple #2
0
 public howdy()
 {
     session_id = Guid.NewGuid().ToString();
     server_information = string.Empty;
     heartbeat = new Heartbeat();
     filetransfer = new Filetransfer();
     recovery = false;
     recovery_interval = 0;
     channel_listing = false;
     headers = null;
 }
Exemple #3
0
        public howdy(string session_id)
        {
            if (string.IsNullOrWhiteSpace(session_id))
                this.session_id = Guid.NewGuid().ToString();
            else
                this.session_id = session_id;

            server_information = string.Empty;
            heartbeat = new Heartbeat();
            filetransfer = new Filetransfer();
            recovery = false;
            recovery_interval = 0;
            channel_listing = false;
            headers = null;
        }
Exemple #4
0
        public howdy(string session_id, string server_information, int recovery_interval, Heartbeat heartbeat, Filetransfer filetransfer)
        {
            if (string.IsNullOrWhiteSpace(session_id))
                this.session_id = Guid.NewGuid().ToString();
            else
                this.session_id = session_id;

            this.server_information = server_information;
            this.heartbeat = heartbeat;
            this.filetransfer = filetransfer;
            this.recovery_interval = recovery_interval;

            recovery = false;
            channel_listing = false;
            headers = null;
        }