-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathServerSocket.cpp
More file actions
45 lines (35 loc) · 859 Bytes
/
Copy pathServerSocket.cpp
File metadata and controls
45 lines (35 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// ServerSocket.cpp : implementation file
//
#include "stdafx.h"
#include "Server.h"
#include "ServerSocket.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CServerSocket
CServerSocket::CServerSocket(CServerDlg* dlg)
{
m_pDlg = dlg;
}
CServerSocket::~CServerSocket()
{
m_pDlg = NULL;
}
// Do not edit the following lines, which are needed by ClassWizard.
#if 0
BEGIN_MESSAGE_MAP(CServerSocket, CSocket)
//{{AFX_MSG_MAP(CServerSocket)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
#endif // 0
/////////////////////////////////////////////////////////////////////////////
// CServerSocket member functions
void CServerSocket::OnAccept(int nErrorCode)
{
CSocket::OnAccept(nErrorCode);
if (m_pDlg)
m_pDlg->AcceptConnect();
}