freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

計算機(jī)網(wǎng)絡(luò)課程設(shè)計(tcpip協(xié)議分析及實現(xiàn))(編輯修改稿)

2025-06-27 23:34 本頁面
 

【文章內(nèi)容簡介】 * pMainFrame) { m_pMainFrame=pMainFrame。//進(jìn)程框架對象的賦值 }CAcceptSocket::~CAcceptSocket(){}// Do not edit the following lines, which are needed by ClassWizard.if 0BEGIN_MESSAGE_MAP(CAcceptSocket, CSocket) //{{AFX_MSG_MAP(CAcceptSocket) //}}AFX_MSG_MAPEND_MESSAGE_MAP()endif // 0/////////////////////////////////////////////////////////////////////////////// CAcceptSocket member functionsvoid CAcceptSocket::OnReceive(int nErrorCode) { char pMsg[10000],tempMsg[1000]。 int ByteCount。//每次讀取的字符個數(shù) int EndFlag=0。//接受完后的標(biāo)志 char AnswerMsg[10100]。 //回應(yīng)信息字符串 strcpy(pMsg,)。 do { strcpy(tempMsg,)。 //每次讀取時,把讀取使用的緩沖區(qū)置成空 ByteCount=Receive(tempMsg,1000)。//每次讀取1000個字符 if (ByteCount1000 || ByteCount=0) { AfxMessageBox(接受數(shù)據(jù)出錯,MB_OK)。return 。 } else if(ByteCount1000 amp。amp。 ByteCount0) { EndFlag=1。 //字節(jié)不足1000時,表示數(shù)據(jù)接受已經(jīng)完成 } //添加字符串的結(jié)束苻 tempMsg[ByteCount]=0。 //把每次收到的數(shù)據(jù)放在一起 strcat(pMsg,tempMsg)。 } while(EndFlag==0)。 //顯示接收但的數(shù)據(jù) AfxMessageBox(pMsg,MB_OK)。 sprintf(AnswerMsg,我已經(jīng)收到你的消息\n\%s\\n 謝謝,pMsg)。 //發(fā)送回傳信息 Send(AnswerMsg,strlen(AnswerMsg),0)。 CSocket::OnReceive(nErrorCode)。}// : implementation file//include include //自己添加的成員函數(shù)include include include ifdef _DEBUGdefine new DEBUG_NEWundef THIS_FILEstatic char THIS_FILE[] = __FILE__。endif/////////////////////////////////////////////////////////////////////////////// CListenSocket//構(gòu)造函數(shù)和析構(gòu)函數(shù)的實現(xiàn) CListenSocket::CListenSocket(CMainFrame * pMainFrame) { m_pMainFrame=pMainFrame。 //進(jìn)程框架對象的賦值 } CListenSocket::~CListenSocket() { }// Do not edit the following lines, which are needed by ClassWizard.if 0BEGIN_MESSAGE_MAP(CListenSocket, CSocket) //{{AFX_MSG_MAP(CListenSocket) //}}AFX_MSG_MAPEND_MESSAGE_MAP()endif // 0/////////////////////////////////////////////////////////////////////////////// CListenSocket member functionsvoid CListenSocket::OnAccept(int nErrorCode) { //生成接收Socket函數(shù) CAcceptSocket * pSocket=new CAcceptSocket(m_pMainFrame)。 //如果監(jiān)聽成功了,則通過框假類的成員函數(shù) //把接收的socket放入接收socket隊列 if(Accept(*pSocket)) { m_pMainFrame(pSocket)。 } e
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1