/// <summary> /// Constructor for server-side session. /// </summary> public LoopbackSession(LoopbackSession remoteSession, LoopbackPipe entry) : base(entry.Acceptor) { Config = new DefaultLoopbackSessionConfig(); _lock = remoteSession._lock; _localEP = remoteSession._remoteEP; _remoteEP = remoteSession._localEP; _filterChain = new LoopbackFilterChain(this); _remoteSession = remoteSession; _receivedMessageQueue = new ConcurrentQueue<Object>(); }
/// <summary> /// Constructor for server-side session. /// </summary> public LoopbackSession(LoopbackSession remoteSession, LoopbackPipe entry) : base(entry.Acceptor) { Config = new DefaultLoopbackSessionConfig(); _lock = remoteSession._lock; _localEP = remoteSession._remoteEP; _remoteEP = remoteSession._localEP; _filterChain = new LoopbackFilterChain(this); _remoteSession = remoteSession; _receivedMessageQueue = new ConcurrentQueue <Object>(); }
/// <summary> /// Constructor for client-side session. /// </summary> public LoopbackSession(IoService service, LoopbackEndPoint localEP, IoHandler handler, LoopbackPipe remoteEntry) : base(service) { Config = new DefaultLoopbackSessionConfig(); _lock = new Byte[0]; _localEP = localEP; _remoteEP = remoteEntry.Endpoint; _filterChain = new LoopbackFilterChain(this); _receivedMessageQueue = new ConcurrentQueue<Object>(); _remoteSession = new LoopbackSession(this, remoteEntry); }
/// <summary> /// Constructor for client-side session. /// </summary> public LoopbackSession(IoService service, LoopbackEndPoint localEP, IoHandler handler, LoopbackPipe remoteEntry) : base(service) { Config = new DefaultLoopbackSessionConfig(); _lock = new Byte[0]; _localEP = localEP; _remoteEP = remoteEntry.Endpoint; _filterChain = new LoopbackFilterChain(this); _receivedMessageQueue = new ConcurrentQueue <Object>(); _remoteSession = new LoopbackSession(this, remoteEntry); }