NetMQ.Core.SessionBase.SessionBase C# (CSharp) Method

SessionBase() public method

Create a new SessionBase object from the given IOThread, socket, and Address.
public SessionBase ( [ ioThread, bool connect, [ socket, [ options, [ addr ) : System
ioThread [ the IOThread for this session to run on
connect bool this flag dictates whether to connect
socket [ the socket to contain
options [ Options that dictate the settings of this session
addr [ an Address that dictates the protocol and IP-address to use when connecting
return System
        public SessionBase([NotNull] IOThread ioThread, bool connect, [NotNull] SocketBase socket, [NotNull] Options options, [NotNull] Address addr)
            : base(ioThread, options)
        {
            m_ioObject = new IOObject(ioThread);

            m_connect = connect;
            m_socket = socket;
            m_ioThread = ioThread;
            m_addr = addr;

            if (options.RawSocket)
            {
                m_identitySent = true;
                m_identityReceived = true;
            }

            m_terminatingPipes = new HashSet<Pipe>();
        }