Exemple #1
0
 /// <summary>Create a XmppEdge.</summary>
 public XmppEdge(IEdgeSendHandler send_handler, XmppTransportAddress local_ta,
     XmppTransportAddress remote_ta, bool inbound) :
   base(send_handler, inbound)
 {
   _ip = new IdentifierPair();
   _local_ta = local_ta;
   _remote_ta = remote_ta;
   To = remote_ta.JID;
 }
Exemple #2
0
    protected void HandleAuthenticate(object sender)
    {
      if(Interlocked.Exchange(ref _ready, 1) == 1) {
        return;
      }

      _local_ta = new XmppTransportAddress(_xmpp.JID);
      _local_tas = new ArrayList(1);
      _local_tas.Add(_local_ta as TransportAddress);
      _xmpp.Register(typeof(XmppRelay), HandleData);
    }