Exemplo n.º 1
0
        static ProtocolState()
        {
            Settings = new XmppSettings();
            Events = new XmppEvents();
            Socket = new AsyncSocket();

            State = new DisconnectedState();
            Events.OnNewTag += EventsOnOnNewTag;
            Events.OnConnect += EventsOnOnConnect;
            Events.OnDisconnect += EventsOnOnDisconnect;
        }
Exemplo n.º 2
0
        static ProtocolState()
        {
            Settings = new XmppSettings();
            Events = new XmppEvents();
            Socket = new AsyncSocket();

            State = new DisconnectedState();
            Events.OnNewTag += EventsOnOnNewTag;
            Events.OnConnect += EventsOnOnConnect;
            Events.OnDisconnect += EventsOnOnDisconnect;
            // here changed
            Events.OnSend += EventsOnOnSend;
            Events.OnSendString += Events_OnSendString;
            Events.OnAuthenticate += Events_OnAuthenticate;
        }