Пример #1
0
        public NetClient()
        {
            m_sender   = new IO.NetSender();
            m_receiver = new IO.NetReceiver(m_sender);


            // 이벤트 연결
            m_receiver.WhenDisconnected += DisconnectedEventTrigger;
        }
Пример #2
0
        public ServerVisitor(Socket sock)
        {
            m_sender   = new IO.NetSender();
            m_receiver = new IO.NetReceiver(m_sender);


            m_socket = sock;

            m_receiver.Start(sock);
            m_sender.Start(sock);
        }
Пример #3
0
        public NetReceiver(NetSender sender)
        {
            this.Sender = sender;

            m_resetIndexForReceivedSeqFlags = -sender.MaxBackupSequence / 2;
        }