Esempio n. 1
0
 private AsyncSocket(SocketWatcher w)
     : base()
 {
     m_watcher = w;
 }
Esempio n. 2
0
 /// <summary>
 /// Called from SocketWatcher.
 /// </summary>
 /// <param name="w"></param>
 /// <param name="listener">The listener for this socket</param>
 public AsyncSocket(SocketWatcher w, ISocketEventListener listener)
     : base(listener)
 {
     m_watcher = w;
 }
Esempio n. 3
0
        /// <summary>
        /// Called from SocketWatcher.
        /// </summary>
        /// <param name="w"></param>
        /// <param name="listener">The listener for this socket</param>
        /// <param name="SSL">Do SSL3 and TLS1 on startup (call
        /// StartTLS later if this is false, and TLS only is needed
        /// later)</param>
        /// <param name="synch">Synchronous operation</param>
        public AsyncSocket(SocketWatcher w,
            ISocketEventListener listener,
            bool SSL,
            bool synch)
            : base(listener)
        {
            m_watcher = w;
            m_synch = synch;

            if (SSL)
                m_secureProtocol = SSLProtocols;
        }