示例#1
0
        internal MessageSession(MessageSessionManager sessionManager, Socket clientSocket)
        {
            SessionManager = sessionManager;
            ClientSocket = clientSocket;
            SessionId = -1;

            _sendQueue = new SinglyAccessQueue<byte[]>(this, ProcessSend);
        }
示例#2
0
        internal MessageSession(MessageSessionManager sessionManager, Socket clientSocket)
        {
            SessionManager = sessionManager;
            ClientSocket   = clientSocket;
            SessionId      = -1;

            _sendQueue = new SinglyAccessQueue <byte[]>(this, ProcessSend);
        }
示例#3
0
 internal MessageListener(MessageSessionManager sessionManager)
 {
     SessionManager = sessionManager;
 }
示例#4
0
 internal MessageListener(MessageSessionManager sessionManager)
 {
     SessionManager = sessionManager;
 }
示例#5
0
 internal MessageSession(MessageSessionManager sessionManager)
     : this(sessionManager, new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
 {
 }
示例#6
0
 internal MessageSession(MessageSessionManager sessionManager)
     : this(sessionManager, new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
 {
 }