Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From 870a7331718983d16272bd99acf9e5e8a3c1e391 Mon Sep 17 00:00:00 2001
- From: Kyle Fuller <inbox@kylefuller.co.uk>
- Date: Tue, 31 May 2011 21:48:06 +0100
- Subject: [PATCH] Add a PutModule method to CSocket forwarding this to the
- module
- ---
- Socket.cpp | 8 ++++++++
- Socket.h | 2 ++
- 2 files changed, 10 insertions(+), 0 deletions(-)
- diff --git a/Socket.cpp b/Socket.cpp
- index e4c2ef7..84e8a0a 100644
- --- a/Socket.cpp
- +++ b/Socket.cpp
- @@ -130,4 +130,12 @@ bool CSocket::Listen(unsigned short uPort, bool bSSL, unsigned int uTimeout) {
- }
- CModule* CSocket::GetModule() const { return m_pModule; }
- +
- +bool CSocket::PutModule(const CString& sLine) {
- + if (m_pModule) {
- + return m_pModule->PutModule(sLine);
- + }
- +
- + return false;
- +}
- /////////////////// !CSocket ///////////////////
- diff --git a/Socket.h b/Socket.h
- index a273358..aa69c4f 100644
- --- a/Socket.h
- +++ b/Socket.h
- @@ -151,6 +151,8 @@ public:
- //! Ease of use Listen, assigned to the manager and is subsequently tracked
- bool Listen(unsigned short uPort, bool bSSL, unsigned int uTimeout = 0);
- + bool PutModule(const CString& sLine);
- +
- // Getters
- CModule* GetModule() const;
- // !Getters
Add Comment
Please, Sign In to add comment