Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
IpMonitorDoc.cpp
Package: ipfilter.zip [view]
Upload User: nnxzhh
Upload Date: 2007-01-11
Package Size: 742k
Code Size: 3k
Category:
Firewall-Security
Development Platform:
WINDOWS
- ///////////////////////////////////////////////////////////////////////////////
- //
- // (C) Copyright 1999 - 2000 Mark Roddy
- // All Rights Reserved
- //
- // Hollis Technology Solutions
- // 94 Dow Road
- // Hollis, NH 03049
- // info@hollistech.com
- //
- // Synopsis:
- //
- //
- // Version Information:
- //
- // $Header: /iphook/usr/IpMonitor/IpMonitorDoc.cpp 2 1/27/00 10:35p Markr $
- //
- ///////////////////////////////////////////////////////////////////////////////
- // IpMonitorDoc.cpp : implementation of the CIpMonitorDoc class
- //
- #include "stdafx.h"
- #include "IpMonitor.h"
- #include "IpMonitorDoc.h"
- #include "IpMonitorView.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CIpMonitorDoc
- IMPLEMENT_DYNCREATE(CIpMonitorDoc, CDocument)
- BEGIN_MESSAGE_MAP(CIpMonitorDoc, CDocument)
- //{{AFX_MSG_MAP(CIpMonitorDoc)
- ON_COMMAND(ID_DOC_CLEAR, OnDocClear)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CIpMonitorDoc construction/destruction
- CIpMonitorDoc::CIpMonitorDoc()
- {
- theApp.m_theDoc = this;
- m_lineCount = 0;
- m_data.RemoveAll();
- }
- CIpMonitorDoc::~CIpMonitorDoc()
- {
- }
- BOOL CIpMonitorDoc::OnNewDocument()
- {
- if (!CDocument::OnNewDocument()) {
- return FALSE;
- }
- if (theApp.m_theView) {
- //
- // tell our one and only view that it is time to re-init
- //
- theApp.m_theView->reInitView();
- }
- m_lineCount = 0;
- m_data.RemoveAll();
- return TRUE;
- }
- /////////////////////////////////////////////////////////////////////////////
- // CIpMonitorDoc serialization
- void CIpMonitorDoc::Serialize(CArchive& ar)
- {
- if (ar.IsStoring())
- {
- for (int i = 0; i < m_data.GetSize(); i++) {
- ar << m_data[i];
- }
- SetModifiedFlag(FALSE);
- }
- else
- {
- }
- }
- /////////////////////////////////////////////////////////////////////////////
- // CIpMonitorDoc diagnostics
- #ifdef _DEBUG
- void CIpMonitorDoc::AssertValid() const
- {
- CDocument::AssertValid();
- }
- void CIpMonitorDoc::Dump(CDumpContext& dc) const
- {
- CDocument::Dump(dc);
- }
- #endif //_DEBUG
- /////////////////////////////////////////////////////////////////////////////
- // CIpMonitorDoc commands
- void CIpMonitorDoc::addItem(CString& item)
- {
- m_data.Add(item + CString("rn"));
- m_lineCount++;
- SetModifiedFlag();
- }
- void CIpMonitorDoc::OnDocClear()
- {
- m_data.RemoveAll();
- }
- ///////////////////////////////////////////////////////////////////////////////
- //
- // Change History Log
- //
- // $Log: /iphook/usr/IpMonitor/IpMonitorDoc.cpp $
- //
- // 2 1/27/00 10:35p Markr
- // Prepare to release!
- //
- ///////////////////////////////////////////////////////////////////////////////