Guest User

Untitled

a guest
Nov 24th, 2017
368
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. From 870a7331718983d16272bd99acf9e5e8a3c1e391 Mon Sep 17 00:00:00 2001
  2. From: Kyle Fuller <inbox@kylefuller.co.uk>
  3. Date: Tue, 31 May 2011 21:48:06 +0100
  4. Subject: [PATCH] Add a PutModule method to CSocket forwarding this to the
  5. module
  6.  
  7. ---
  8. Socket.cpp | 8 ++++++++
  9. Socket.h | 2 ++
  10. 2 files changed, 10 insertions(+), 0 deletions(-)
  11.  
  12. diff --git a/Socket.cpp b/Socket.cpp
  13. index e4c2ef7..84e8a0a 100644
  14. --- a/Socket.cpp
  15. +++ b/Socket.cpp
  16. @@ -130,4 +130,12 @@ bool CSocket::Listen(unsigned short uPort, bool bSSL, unsigned int uTimeout) {
  17. }
  18.  
  19. CModule* CSocket::GetModule() const { return m_pModule; }
  20. +
  21. +bool CSocket::PutModule(const CString& sLine) {
  22. + if (m_pModule) {
  23. + return m_pModule->PutModule(sLine);
  24. + }
  25. +
  26. + return false;
  27. +}
  28. /////////////////// !CSocket ///////////////////
  29. diff --git a/Socket.h b/Socket.h
  30. index a273358..aa69c4f 100644
  31. --- a/Socket.h
  32. +++ b/Socket.h
  33. @@ -151,6 +151,8 @@ public:
  34. //! Ease of use Listen, assigned to the manager and is subsequently tracked
  35. bool Listen(unsigned short uPort, bool bSSL, unsigned int uTimeout = 0);
  36.  
  37. + bool PutModule(const CString& sLine);
  38. +
  39. // Getters
  40. CModule* GetModule() const;
  41. // !Getters
Add Comment
Please, Sign In to add comment