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); }
public int GetData(out CSocketServerData target) { target = ObjectExtensions.Copy(m_Data); return(SUCCESS); }
/***************** Common Implementation *************************************/ public int SetData(CSocketServerData source) { m_Data = ObjectExtensions.Copy(source); return(SUCCESS); }