Changeset 474
- Timestamp:
- 04/07/06 03:31:34 (2 years ago)
- Files:
-
- library/trunk/library-core/Makefile.am (modified) (1 diff)
- library/trunk/library-core/include/Buffer.hpp (modified) (3 diffs)
- library/trunk/library-core/include/Config.hpp (modified) (3 diffs)
- library/trunk/library-core/include/ConsoleLogger.hpp (modified) (3 diffs)
- library/trunk/library-core/include/DNSCallback.hpp (modified) (3 diffs)
- library/trunk/library-core/include/DNSHandler.hpp (modified) (3 diffs)
- library/trunk/library-core/include/DNSManager.hpp (modified) (4 diffs)
- library/trunk/library-core/include/DNSQuery.hpp (modified) (3 diffs)
- library/trunk/library-core/include/DNSResult.hpp (modified) (3 diffs)
- library/trunk/library-core/include/Dialogue.hpp (modified) (7 diffs)
- library/trunk/library-core/include/DialogueFactory.hpp (modified) (3 diffs)
- library/trunk/library-core/include/DialogueFactoryManager.hpp (modified) (4 diffs)
- library/trunk/library-core/include/Event.hpp (modified) (3 diffs)
- library/trunk/library-core/include/EventHandler.hpp (modified) (3 diffs)
- library/trunk/library-core/include/EventManager.hpp (modified) (4 diffs)
- library/trunk/library-core/include/FileLogger.hpp (modified) (3 diffs)
- library/trunk/library-core/include/GeoLocationCallback.hpp (modified) (3 diffs)
- library/trunk/library-core/include/GeoLocationHandler.hpp (modified) (3 diffs)
- library/trunk/library-core/include/GeoLocationManager.hpp (modified) (4 diffs)
- library/trunk/library-core/include/GeoLocationQuery.hpp (modified) (3 diffs)
- library/trunk/library-core/include/GeoLocationResult.hpp (modified) (3 diffs)
- library/trunk/library-core/include/LogHandler.hpp (modified) (3 diffs)
- library/trunk/library-core/include/LogHandlerEntry.hpp (modified) (3 diffs)
- library/trunk/library-core/include/LogManager.hpp (modified) (3 diffs)
- library/trunk/library-core/include/Makefile.am (modified) (3 diffs)
- library/trunk/library-core/include/Manager.hpp (modified) (4 diffs)
- library/trunk/library-core/include/Message.hpp (modified) (3 diffs)
- library/trunk/library-core/include/Module.hpp (modified) (4 diffs)
- library/trunk/library-core/include/ModuleManager.hpp (modified) (4 diffs)
- library/trunk/library-core/include/POLLSocket.hpp (modified) (1 diff)
- library/trunk/library-core/include/Packet.hpp (modified) (3 diffs)
- library/trunk/library-core/include/Responder.hpp (modified) (3 diffs)
- library/trunk/library-core/include/RingFileLogger.hpp (modified) (3 diffs)
- library/trunk/library-core/include/SQLCallback.hpp (added)
- library/trunk/library-core/include/SQLHandler.hpp (added)
- library/trunk/library-core/include/SQLManager.hpp (added)
- library/trunk/library-core/include/SQLQuery.hpp (added)
- library/trunk/library-core/include/SQLResult.hpp (added)
- library/trunk/library-core/include/Socket.hpp (modified) (6 diffs)
- library/trunk/library-core/include/SocketEvent.hpp (modified) (3 diffs)
- library/trunk/library-core/include/SocketManager.hpp (modified) (4 diffs)
- library/trunk/library-core/include/TCPSocket.hpp (modified) (4 diffs)
- library/trunk/library-core/include/UDSSocket.hpp (modified) (2 diffs)
- library/trunk/library-core/include/Utilities.hpp (modified) (3 diffs)
- library/trunk/library-core/src/Buffer.cpp (modified) (3 diffs)
- library/trunk/library-core/src/Config.cpp (modified) (3 diffs)
- library/trunk/library-core/src/ConsoleLogger.cpp (modified) (4 diffs)
- library/trunk/library-core/src/DNSCallback.cpp (modified) (2 diffs)
- library/trunk/library-core/src/DNSHandler.cpp (modified) (2 diffs)
- library/trunk/library-core/src/DNSManager.cpp (modified) (5 diffs)
- library/trunk/library-core/src/DNSQuery.cpp (modified) (3 diffs)
- library/trunk/library-core/src/DNSResult.cpp (modified) (4 diffs)
- library/trunk/library-core/src/Dialogue.cpp (modified) (2 diffs)
- library/trunk/library-core/src/DialogueFactory.cpp (modified) (2 diffs)
- library/trunk/library-core/src/EventHandler.cpp (modified) (3 diffs)
- library/trunk/library-core/src/EventManager.cpp (modified) (4 diffs)
- library/trunk/library-core/src/FileLogger.cpp (modified) (3 diffs)
- library/trunk/library-core/src/GeoLocationManager.cpp (modified) (5 diffs)
- library/trunk/library-core/src/GeoLocationQuery.cpp (modified) (3 diffs)
- library/trunk/library-core/src/GeoLocationResult.cpp (modified) (3 diffs)
- library/trunk/library-core/src/LogHandler.cpp (modified) (3 diffs)
- library/trunk/library-core/src/LogManager.cpp (modified) (3 diffs)
- library/trunk/library-core/src/Makefile.am (modified) (2 diffs)
- library/trunk/library-core/src/Manager.cpp (modified) (3 diffs)
- library/trunk/library-core/src/Message.cpp (modified) (3 diffs)
- library/trunk/library-core/src/Module.cpp (modified) (2 diffs)
- library/trunk/library-core/src/ModuleManager.cpp (modified) (11 diffs)
- library/trunk/library-core/src/POLLSocket.cpp (modified) (3 diffs)
- library/trunk/library-core/src/Packet.cpp (modified) (3 diffs)
- library/trunk/library-core/src/Responder.cpp (modified) (2 diffs)
- library/trunk/library-core/src/RingFileLogger.cpp (modified) (3 diffs)
- library/trunk/library-core/src/SQLCallback.cpp (added)
- library/trunk/library-core/src/SQLHandler.cpp (added)
- library/trunk/library-core/src/SQLManager.cpp (added)
- library/trunk/library-core/src/SQLQuery.cpp (added)
- library/trunk/library-core/src/SQLResult.cpp (added)
- library/trunk/library-core/src/Socket.cpp (modified) (9 diffs)
- library/trunk/library-core/src/SocketManager.cpp (modified) (15 diffs)
- library/trunk/library-core/src/TCPSocket.cpp (modified) (23 diffs)
- library/trunk/library-core/src/Utilities.cpp (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
library/trunk/library-core/Makefile.am
r321 r474 1 # nepenthesmeta-Makefile1 # library meta-Makefile 2 2 # Maximillian Dornseif 3 3 # $Id$ library/trunk/library-core/include/Buffer.hpp
r321 r474 1 1 /******************************************************************************** 2 * Nepenthes2 * Library 3 3 * - finest collection - 4 4 * … … 22 22 * 23 23 * 24 * contact nepenthesdev@users.sourceforge.net24 * contact librarydev@users.sourceforge.net 25 25 * 26 26 *******************************************************************************/ … … 32 32 #include <stdint.h> 33 33 34 namespace nepenthes34 namespace library 35 35 { 36 36 /** library/trunk/library-core/include/Config.hpp
r321 r474 1 1 /******************************************************************************** 2 * Nepenthes2 * Library 3 3 * - finest collection - 4 4 * … … 22 22 * 23 23 * 24 * contact nepenthesdev@users.sourceforge.net24 * contact librarydev@users.sourceforge.net 25 25 * 26 26 *******************************************************************************/ … … 57 57 58 58 59 namespace nepenthes59 namespace library 60 60 { 61 61 library/trunk/library-core/include/ConsoleLogger.hpp
r321 r474 1 1 /******************************************************************************** 2 * Nepenthes2 * Library 3 3 * - finest collection - 4 4 * … … 22 22 * 23 23 * 24 * contact nepenthesdev@users.sourceforge.net24 * contact librarydev@users.sourceforge.net 25 25 * 26 26 *******************************************************************************/ … … 33 33 #include "LogHandler.hpp" 34 34 35 namespace nepenthes35 namespace library 36 36 { 37 37 library/trunk/library-core/include/DNSCallback.hpp
r332 r474 1 1 /******************************************************************************** 2 * Nepenthes2 * Library 3 3 * - finest collection - 4 4 * … … 22 22 * 23 23 * 24 * contact nepenthesdev@users.sourceforge.net24 * contact librarydev@users.sourceforge.net 25 25 * 26 26 *******************************************************************************/ … … 35 35 using namespace std; 36 36 37 namespace nepenthes37 namespace library 38 38 { 39 39 class DNSResult; library/trunk/library-core/include/DNSHandler.hpp
r332 r474 1 1 /******************************************************************************** 2 * Nepenthes2 * Library 3 3 * - finest collection - 4 4 * … … 22 22 * 23 23 * 24 * contact nepenthesdev@users.sourceforge.net24 * contact librarydev@users.sourceforge.net 25 25 * 26 26 *******************************************************************************/ … … 35 35 using namespace std; 36 36 37 namespace nepenthes37 namespace library 38 38 { 39 39 class DNSQuery; library/trunk/library-core/include/DNSManager.hpp
r332 r474 1 1 /******************************************************************************** 2 * Nepenthes2 * Library 3 3 * - finest collection - 4 4 * … … 22 22 * 23 23 * 24 * contact nepenthesdev@users.sourceforge.net24 * contact librarydev@users.sourceforge.net 25 25 * 26 26 *******************************************************************************/ … … 37 37 #include "EventHandler.hpp" 38 38 39 namespace nepenthes39 namespace library 40 40 { 41 41 class DNSCallback; … … 48 48 { 49 49 public: 50 DNSManager( Nepenthes *nepenthes);50 DNSManager(Library *library); 51 51 virtual ~DNSManager(); 52 52 library/trunk/library-core/include/DNSQuery.hpp
r332 r474 1 1 /******************************************************************************** 2 * Nepenthes2 * Library 3 3 * - finest collection - 4 4 * … … 22 22 * 23 23 * 24 * contact nepenthesdev@users.sourceforge.net24 * contact librarydev@users.sourceforge.net 25 25 * 26 26 *******************************************************************************/ … … 41 41 42 42 43 namespace nepenthes43 namespace library 44 44 { 45 45 library/trunk/library-core/include/DNSResult.hpp
r332 r474 1 1 /******************************************************************************** 2 * Nepenthes2 * Library 3 3 * - finest collection - 4 4 * … … 22 22 * 23 23 * 24 * contact nepenthesdev@users.sourceforge.net24 * contact librarydev@users.sourceforge.net 25 25 * 26 26 *******************************************************************************/ … … 44 44 using namespace std; 45 45 46 namespace nepenthes46 namespace library 47 47 { 48 48 library/trunk/library-core/include/Dialogue.hpp
r332 r474 1 1 /******************************************************************************** 2 * Nepenthes2 * Library 3 3 * - finest collection - 4 4 * … … 22 22 * 23 23 * 24 * contact nepenthesdev@users.sourceforge.net24 * contact librarydev@users.sourceforge.net 25 25 * 26 26 *******************************************************************************/ … … 34 34 using namespace std; 35 35 36 namespace nepenthes36 namespace library 37 37 { 38 38 … … 40 40 class Module; 41 41 class Socket; 42 class Nepenthes;42 class Library; 43 43 class Message; 44 44 … … 48 48 { 49 49 CL_DROP, 50 CL_UNSURE, 51 CL_READONLY, 52 CL_ASSIGN, 53 CL_ASSIGN_AND_DONE 50 CL_ASSIGN 54 51 } ConsumeLevel; 55 52 … … 66 63 virtual ~Dialogue(){}; 67 64 virtual ConsumeLevel incomingData(Message * msg) = 0; 68 virtual ConsumeLevel outgoingData(Message * msg) = 0;69 65 virtual ConsumeLevel handleTimeout(Message * msg) = 0; 70 66 … … 99 95 100 96 101 /**102 */103 virtual void dump()104 {// as some dialogues wont need this fn105 return;106 }107 97 108 98 protected: 109 99 Module *m_Module; 110 100 Socket *m_Socket; 111 Nepenthes *m_Nepenthes;101 Library *m_Library; 112 102 113 103 ConsumeLevel m_ConsumeLevel; library/trunk/library-core/include/DialogueFactory.hpp
r332 r474 1 1 /******************************************************************************** 2 * Nepenthes2 * Library 3 3 * - finest collection - 4 4 * … … 22 22 * 23 23 * 24 * contact nepenthesdev@users.sourceforge.net24 * contact librarydev@users.sourceforge.net 25 25 * 26 26 *******************************************************************************/ … … 34 34 using namespace std; 35 35 36 namespace nepenthes36 namespace library 37 37 { 38 38 class Socket; library/trunk/library-core/include/DialogueFactoryManager.hpp
r332 r474 1 1 /******************************************************************************** 2 * Nepenthes2 * Library 3 3 * - finest collection - 4 4 * … … 22 22 * 23 23 * 24 * contact nepenthesdev@users.sourceforge.net24 * contact librarydev@users.sourceforge.net 25 25 * 26 26 *******************************************************************************/ … … 34 34 #include "Manager.hpp" 35 35 36 #define REG_DIALOGUEFACTORY(diaf) g_ Nepenthes->getFactoryMgr()->registerFactory(diaf)36 #define REG_DIALOGUEFACTORY(diaf) g_Library->getFactoryMgr()->registerFactory(diaf) 37 37 38 38 using namespace std; 39 39 40 namespace nepenthes40 namespace library 41 41 { 42 42 43 43 class DialogueFactory; 44 class Nepenthes;44 class Library; 45 45 46 46 /** … … 55 55 { 56 56 public: 57 DialogueFactoryManager( Nepenthes *nepenthes);57 DialogueFactoryManager(Library *library); 58 58 virtual ~DialogueFactoryManager(); 59 59 bool Init(); library/trunk/library-core/include/Event.hpp
r332 r474 1 1 /******************************************************************************** 2 * Nepenthes2 * Library 3 3 * - finest collection - 4 4 * … … 22 22 * 23 23 * 24 * contact nepenthesdev@users.sourceforge.net24 * contact librarydev@users.sourceforge.net 25 25 * 26 26 *******************************************************************************/ … … 33 33 #include <stdint.h> 34 34 35 namespace nepenthes35 namespace library 36 36 { 37 37 library/trunk/library-core/include/EventHandler.hpp
r332 r474 1 1 /******************************************************************************** 2 * Nepenthes2 * Library 3 3 * - finest collection - 4 4 * … … 22 22 * 23 23 * 24 * contact nepenthesdev@users.sourceforge.net24 * contact librarydev@users.sourceforge.net 25 25 * 26 26 *******************************************************************************/ … … 51 51 using namespace std; 52 52 53 namespace nepenthes53 namespace library 54 54 { 55 55 class EventManager; library/trunk/library-core/include/EventManager.hpp
r332 r474 1 1 /******************************************************************************** 2 * Nepenthes2 * Library 3 3 * - finest collection - 4 4 * … … 22 22 * 23 23 * 24 * contact nepenthesdev@users.sourceforge.net24 * contact librarydev@users.sourceforge.net 25 25 * 26 26 *******************************************************************************/ … … 37 37 #include "Manager.hpp" 38 38 39 #define REG_EVENT_HANDLER(handler) g_ Nepenthes->getEventMgr()->registerEventHandler(handler)40 #define UNREG_EVENT_HANDLER(handler) g_ Nepenthes->getEventMgr()->unregisterEventHandler(handler)39 #define REG_EVENT_HANDLER(handler) g_Library->getEventMgr()->registerEventHandler(handler) 40 #define UNREG_EVENT_HANDLER(handler) g_Library->getEventMgr()->unregisterEventHandler(handler) 41 41 42 42 using namespace std; 43 43 44 namespace nepenthes44 namespace library 45 45 { 46 class Nepenthes;46 class Library; 47 47 class Event; 48 48 class EventHandler; … … 61 61 { 62 62 public: 63 EventManager( Nepenthes *nepenthes);63 EventManager(Library *library); 64 64 virtual ~EventManager(); 65 65 virtual uint32_t handleEvent(Event *event); library/trunk/library-core/include/FileLogger.hpp
r336 r474 1 1 /******************************************************************************** 2 * Nepenthes2 * Library 3 3 * - finest collection - 4 4 * … … 22 22 * 23 23 * 24 * contact nepenthesdev@users.sourceforge.net24 * contact librarydev@users.sourceforge.net 25 25 * 26 26 *******************************************************************************/ … … 33 33 #include "LogHandler.hpp" 34 34 35 namespace nepenthes35 namespace library 36 36 { 37 37 library/trunk/library-core/include/GeoLocationCallback.hpp
r332 r474 1 1 /******************************************************************************** 2 * Nepenthes2 * Library 3 3 * - finest collection - 4 4 * … … 22 22 * 23 23 * 24 * contact nepenthesdev@users.sourceforge.net24 * contact librarydev@users.sourceforge.net 25 25 * 26 26 *******************************************************************************/ … … 39 39 using namespace std; 40 40 41 namespace nepenthes41 namespace library 42 42 { 43 43 class GeoLocationResult; library/trunk/library-core/include/GeoLocationHandler.hpp
r332 r474 1 1 /******************************************************************************** 2 * Nepenthes2 * Library 3 3 * - finest collection - 4 4 * … … 22 22 * 23 23 * 24 * contact nepenthesdev@users.sourceforge.net24 * contact librarydev@users.sourceforge.net 25 25 * 26 26 *******************************************************************************/ … … 39 39 using namespace std; 40 40 41 namespace nepenthes41 namespace library 42 42 { 43 43 class GeoLocationQuery; library/trunk/library-core/include/GeoLocationManager.hpp
r332 r474 1 1 /******************************************************************************** 2 * Nepenthes2 * Library 3 3 * - finest collection - 4 4 * … … 22 22 * 23 23 * 24 * contact nepenthesdev@users.sourceforge.net24 * contact librarydev@users.sourceforge.net 25 25 * 26 26 *******************************************************************************/ … … 38 38 #include "GeoLocationHandler.hpp" 39 39 40 namespace nepenthes40 namespace library 41 41 { 42 42 … … 50 50 { 51 51 public: 52 GeoLocationManager( Nepenthes *nepenthes);52 GeoLocationManager(Library *library); 53 53 ~GeoLocationManager(); 54 54 library/trunk/library-core/include/GeoLocationQuery.hpp
r332 r474 1 1 2 2 /******************************************************************************** 3 * Nepenthes3 * Library 4 4 * - finest collection - 5 5 * … … 23 23 * 24 24 * 25 * contact nepenthesdev@users.sourceforge.net25 * contact librarydev@users.sourceforge.net 26 26 * 27 27 *******************************************************************************/ … … 41 41 using namespace std; 42 42 43 namespace nepenthes43 namespace library 44 44 { 45 45 class GeoLocationCallback; library/trunk/library-core/include/GeoLocationResult.hpp
r332 r474 1 1 /******************************************************************************** 2 * Nepenthes2 * Library 3 3 * - finest collection - 4 4 * … … 22 22 * 23 23 * 24 * contact nepenthesdev@users.sourceforge.net24 * contact librarydev@users.sourceforge.net 25 25 * 26 26 *******************************************************************************/ … … 40 40 using namespace std; 41 41 42 namespace nepenthes42 namespace library 43 43 { 44 44 class GeoLocationResult library/trunk/library-core/include/LogHandler.hpp
r321 r474 1 1 /******************************************************************************** 2 * Nepenthes2 * Library 3 3 * - finest collection - 4 4 * … … 22 22 * 23 23 * 24 * contact nepenthesdev@users.sourceforge.net24 * contact librarydev@users.sourceforge.net 25 25 * 26 26 *******************************************************************************/ … … 33 33 #include <stdint.h> 34 34 35 namespace nepenthes35 namespace library 36 36 { 37 37 class LogManager; library/trunk/library-core/include/LogHandlerEntry.hpp
r321 r474 1 1 /******************************************************************************** 2 * Nepenthes2 * Library 3 3 * - finest collection - 4 4 * … … 22 22 * 23 23 * 24 * contact nepenthesdev@users.sourceforge.net24 * contact librarydev@users.sourceforge.net 25 25 * 26 26 *******************************************************************************/ … … 31 31 #define LOGHANDLERENTRY_HPP 32 32 33 namespace nepenthes33 namespace library 34 34 { 35 35 class LogHandler; library/trunk/library-core/include/LogManager.hpp
r375 r474 1 1 /******************************************************************************** 2 * Nepenthes2 * Library 3 3 * - finest collection - 4 4 * … … 22 22 * 23 23 * 24 * contact nepenthesdev@users.sourceforge.net24 * contact librarydev@users.sourceforge.net 25 25 * 26 26 *******************************************************************************/ … … 34 34 #include <stdint.h> 35 35 36 namespace nepenthes36 namespace library 37 37 { 38 38 #define MAX_TAGS 32 library/trunk/library-core/include/Makefile.am
r332 r474 1 # nepenthesheader Makefile1 # library header Makefile 2 2 # Maximillian Dornseif 3 3 # $Id$ … … 11 11 EXTRA_DIST += DialogueFactory.hpp DialogueFactoryManager.hpp Dialogue.hpp 12 12 EXTRA_DIST += DNSManager.hpp DNSHandler.hpp DNSQuery.hpp DNSCallback.hpp DNSResult.hpp 13 EXTRA_DIST += DownloadManager.hpp DownloadHandler.hpp Download.hpp DownloadBuffer.hpp DownloadUrl.hpp DownloadCallback.hpp14 13 EXTRA_DIST += EventManager.hpp EventHandler.hpp Event.hpp SubmitEvent.hpp SocketEvent.hpp 15 14 EXTRA_DIST += GeoLocationManager.hpp GeoLocationHandler.hpp GeoLocationCallback.hpp GeoLocationQuery.hpp GeoLocationResult.hpp GeoLocationResult.hpp … … 17 16 EXTRA_DIST += LuaFunctions.hpp LuaInterface.hpp 18 17 EXTRA_DIST += ModuleManager.hpp Module.hpp 19 EXTRA_DIST += Manager.hpp Nepenthes.hpp 20 EXTRA_DIST += SocketManager.hpp Socket.hpp TCPSocket.hpp UDPSocket.hpp POLLSocket.hpp RAWSocket.hpp Responder.hpp UDSSocket.hpp FILESocket.hpp 21 EXTRA_DIST += ShellcodeManager.hpp ShellcodeHandler.hpp 18 EXTRA_DIST += Manager.hpp Library.hpp 19 EXTRA_DIST += SocketManager.hpp Socket.hpp TCPSocket.hpp 22 20 EXTRA_DIST += Packet.hpp 23 EXTRA_DIST += SubmitManager.hpp SubmitHandler.hpp24 EXTRA_DIST += UploadManager.hpp UploadHandler.hpp UploadQuery.hpp UploadCallback.hpp UploadResult.hpp25 21 EXTRA_DIST += Utilities.hpp library/trunk/library-core/include/Manager.hpp
r332 r474 1 1 /******************************************************************************** 2 * Nepenthes2 * Library 3 3 * - finest collection - 4 4 * … … 22 22 * 23 23 * 24 * contact nepenthesdev@users.sourceforge.net24 * contact librarydev@users.sourceforge.net 25 25 * 26 26 *******************************************************************************/ … … 31 31 #define HAVE_MANAGER_HPP 32 32 33 namespace nepenthes33 namespace library 34 34 { 35 35 36 class Nepenthes;36 class Library; 37 37 38 38 /** … … 44 44 public: 45 45 virtual ~Manager(){}; 46 virtual Nepenthes *getNepenthes();46 virtual Library *getLibrary(); 47 47 virtual bool Init()=0; 48 48 virtual bool Exit()=0; 49 49 virtual void doList()=0; 50 50 protected: 51 Nepenthes *m_Nepenthes;51 Library *m_Library; 52 52 }; 53 53 } library/trunk/library-core/include/Message.hpp
r332 r474 1 1 /******************************************************************************** 2 * Nepenthes2 * Library 3 3 * - finest collection - 4 4 * … … 22 22 * 23 23 * 24
