Exemple #1
0
 internal XmppConnection(XmppHost xmppHost, Version protocolVersion, ILog log)
 {
     Host = xmppHost;
     _protocolVersion = protocolVersion;
     _log = log;
     _socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.IP);
     _encoding = new UTF8Encoding(false);
     _xmlReaderSettings = new XmlReaderSettings {IgnoreComments = true, IgnoreProcessingInstructions = true, IgnoreWhitespace = true, ProhibitDtd = true, NameTable = new NameTable(), Schemas = {XmlResolver = new CustomXmlResolver()}};
 }
 public IXmppConnection Create(XmppHost xmppHost, Version protocolVersion, ILog log)
 {
     return new XmppConnection(xmppHost, protocolVersion, log);
 }