示例#1
0
        public MSocketServer(CObjectInfo objInfo, CSocketServerData data)
            : base(objInfo)
        {
            SetData(data);

            // 비동기 작업에 사용될 대리자를 초기화합니다.
            m_fnReceiveHandler = new AsyncCallback(handleDataReceive);
            m_fnSendHandler    = new AsyncCallback(handleDataSend);
            m_fnAcceptHandler  = new AsyncCallback(handleClientConnectionRequest);
        }
示例#2
0
        public int GetData(out CSocketServerData target)
        {
            target = ObjectExtensions.Copy(m_Data);

            return(SUCCESS);
        }
示例#3
0
        /***************** Common Implementation *************************************/

        public int SetData(CSocketServerData source)
        {
            m_Data = ObjectExtensions.Copy(source);
            return(SUCCESS);
        }