-
Notifications
You must be signed in to change notification settings - Fork 2
/
listen.cpp
executable file
·64 lines (59 loc) · 1.64 KB
/
listen.cpp
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// Listen.cpp : implementation of the CListSocket class
//
// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (C) 1997 Microsoft Corporation
// All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and related
// electronic documentation provided with the library.
// See these sources for detailed information regarding the
// Microsoft Foundation Classes product.
//
// Note that your filters probably won't have an #ifdef like this one.
// The project file for this sample allows you to build the sample as
// a statically linked regular MFC DLL (that is, with _AFXDLL defined)
// or as a DLL that doesn't use MFC classes aside from the ISAPI
// support classes (that is, without _AFXDLL defined).
#include "stdafx.h"
#include "MyStatusBar.h"
#include "MainFrm.h"
#include "pex32.h"
#include "Decoder.h"
#include "Encoder.h"
#include "Hardware.h"
#include "Statistic.h"
#include "Set.h"
#include "Filter.h"
#include "ListManager.h"
#include "Options.h"
#include "SetGeneral.h"
#include "pocsag.h"
#include "ecctab.h"
#include "Listen.h"
#include "aliases.h"
#include "MyMessageBox.h"
#include "Pex32Doc.h"
#include "SmartSocket.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
IMPLEMENT_DYNCREATE (CListenSocket, CAsyncSocket)
CListenSocket::CListenSocket (void)
{
m_pDoc = NULL;
}
CListenSocket::CListenSocket (CPex32Doc * pDoc)
{
m_pDoc = pDoc;
}
void
CListenSocket::OnAccept (int nErrorCode)
{
CSmartSocket *pRequest = new CSmartSocket (m_pDoc);
if (Accept (*pRequest)) {
pRequest->OnStartup ();
}
}