Main Page | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals

MCFTPMessageManager.h

Go to the documentation of this file.
00001 // MCFTPMessageManager.h
00002 //////////////////////////////////////////////////////////////////////
00003 //          (c) Copyright 2002 Brown Deer Technology, LLC.
00004 //                        All rights reserved.
00005 //////////////////////////////////////////////////////////////////////
00006 
00007 #ifndef MCFTPMESSAGEMANAGER_H
00008 #define MCFTPMESSAGEMANAGER_H
00009 
00010 #ifdef USE_STD
00011 #include <iostream>
00012 #include <fstream>
00013 #include <cstdlib>
00014 using namespace std;
00015 #else
00016 #include <iostream.h>
00017 #include <fstream.h>
00018 #include <stdlib.h>
00019 #endif
00020 
00021 #include "utility.h"
00022 #include "MCFTPid.h"
00023 
00024 inline
00025 int iptoint( 
00026    unsigned char ip3, unsigned char ip2, unsigned char ip1, unsigned char ip0 
00027 )
00028 {
00029    return ip3*16777216 + ip2*65536 + ip1*256 + ip0;
00030 }
00031 
00032 class MCFTPMessageManager
00033 {
00034    public:
00035       static MCFTPMessageManager* instance();
00036       void destroy();
00037       MCFTPid get_id();
00038 
00039    protected:
00040       MCFTPMessageManager();
00041       ~MCFTPMessageManager();
00042 
00043    private:
00044       static MCFTPMessageManager* _ptinstance;
00045 
00046       static unsigned int _dst_ip;
00047       static unsigned int _dst_port;
00048       static unsigned int _src_ip;
00049       static unsigned int _src_port;
00050       static unsigned int _mssgnum;
00051 
00052       MCFTPMessageManager( const MCFTPMessageManager& ) {}
00053 };
00054 
00055 #endif
00056 

Generated on Mon May 31 21:38:49 2004 for SR2k4 Assembler by doxygen 1.3.6