资源简介
简单的基于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++多线程网络聊天程序
评论
共有 条评论