Example #1
0
		public SSLConnector Connect(string host, int port)
		{
			SSLConnector conn = (SSLConnector)Reactor.ConnectSSL(host, port, _factory, null);

			Daemon = new Daemon(_factory);
			Core = new Core(_factory);

			return conn;
		}
Example #2
0
        private void _ConnectAsyncCallback(IConnector connector, object callbackState)
        {
            if (!(callbackState is object[])) throw new ArgumentException();

            object[] states = (object[])callbackState;
            ConnectAsyncCallback callback = states[0] as ConnectAsyncCallback;
            object state = states[2];

            Daemon = new Daemon(_factory);
            Core = new Core(_factory);
            callback(connector, state);
        }