資源簡介
簡單的基于MFC的Socket點對點對話客戶端(Simple Socket peer-to-peer dialogue MFC-based customer-side)

代碼片段和文件信息
//?MySocket.cpp?:?implementation?file
//
#include?“stdafx.h“
#include?“talkc.h“
#include?“MySocket.h“
#include?“TalkcDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMySocket
CMySocket::CMySocket()
{
//put?the?member?pointer?to?NULL
m_pDlg=NULL;
}
CMySocket::~CMySocket()
{
//put?the?member?pointer?to?NULL
m_pDlg=NULL;
}
//?Do?not?edit?the?following?lines?which?are?needed?by?ClassWizard.
#if?0
BEGIN_MESSAGE_MAP(CMySocket?CAsyncSocket)
//{{AFX_MSG_MAP(CMySocket)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
#endif //?0
/////////////////////////////////////////////////////////////////////////////
//?CMySocket?member?functions
void?CMySocket::OnConnect(int?nErrorCode)?
{
if?(nErrorCode==0)
//call?the?dialog‘s?OnConnect?function
m_pDlg->OnConnect();
}
void?CMySocket::OnReceive(int?nErrorCode)?
{
if?(nErrorCode==0)
//call?the?dialog‘s?OnReceive?function
m_pDlg->OnReceive();
}
void?CMySocket::OnClose(int?nErrorCode)?
{
if?(nErrorCode==0)
//call?the?dialog‘s?OnClose?function
m_pDlg->OnClose();
}
void?CMySocket::SetParent(CTalkcDlg?*pDlg)
{
//set?the?member?pointer
m_pDlg=pDlg;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????7898??2018-01-22?16:24??10795717TALKC\TALKC\Debug\MySocket.obj
?????文件?????106604??2018-01-22?16:24??10795717TALKC\TALKC\Debug\StdAfx.obj
?????文件?????114761??2018-01-22?16:24??10795717TALKC\TALKC\Debug\talkc.exe
?????文件?????224968??2018-01-22?16:24??10795717TALKC\TALKC\Debug\talkc.ilk
?????文件??????15121??2018-01-22?16:24??10795717TALKC\TALKC\Debug\talkc.obj
?????文件????5568820??2018-01-22?16:24??10795717TALKC\TALKC\Debug\talkc.pch
?????文件?????295936??2018-01-22?16:24??10795717TALKC\TALKC\Debug\talkc.pdb
?????文件???????2896??2018-01-22?16:24??10795717TALKC\TALKC\Debug\talkc.res
?????文件??????34816??2018-01-22?16:24??10795717TALKC\TALKC\Debug\talkcDlg.obj
?????文件?????214016??2018-01-22?16:24??10795717TALKC\TALKC\Debug\vc60.idb
?????文件?????364544??2018-01-22?16:24??10795717TALKC\TALKC\Debug\vc60.pdb
?????文件???????1322??2005-01-16?22:52??10795717TALKC\TALKC\MySocket.cpp
?????文件???????1311??2005-01-16?22:08??10795717TALKC\TALKC\MySocket.h
?????文件???????3561??2005-01-16?17:16??10795717TALKC\TALKC\ReadMe.txt
?????文件???????1078??2005-01-16?17:16??10795717TALKC\TALKC\RES\TALKC.ICO
?????文件????????397??2005-01-16?17:16??10795717TALKC\TALKC\RES\TALKC.RC2
?????文件???????1234??2005-01-16?17:53??10795717TALKC\TALKC\RESOURCE.H
?????文件????????207??2005-01-16?17:16??10795717TALKC\TALKC\StdAfx.cpp
?????文件???????1102??2005-01-16?17:16??10795717TALKC\TALKC\StdAfx.h
?????文件??????21672??2018-01-22?16:23??10795717TALKC\TALKC\TALKC.APS
?????文件???????1749??2018-01-22?16:33??10795717TALKC\TALKC\TALKC.CLW
?????文件???????2143??2005-01-16?17:16??10795717TALKC\TALKC\TALKC.CPP
?????文件???????4269??2005-01-16?18:13??10795717TALKC\TALKC\TALKC.DSP
?????文件????????535??2005-01-16?17:19??10795717TALKC\TALKC\TALKC.DSW
?????文件???????1313??2005-01-16?17:16??10795717TALKC\TALKC\TALKC.H
?????文件?????295936??2018-01-22?16:34??10795717TALKC\TALKC\TALKC.NCB
?????文件??????55808??2018-01-22?16:34??10795717TALKC\TALKC\TALKC.OPT
?????文件???????1712??2018-01-22?16:24??10795717TALKC\TALKC\TALKC.PLG
?????文件???????6246??2005-01-16?17:53??10795717TALKC\TALKC\TALKC.RC
?????文件???????7955??2005-01-16?23:27??10795717TALKC\TALKC\talkcDlg.cpp
............此處省略9個文件信息
- 上一篇:MFC簡單的客戶端服務器通信軟件
- 下一篇:C++多線程網絡聊天程序
評論
共有 條評論