diff options
Diffstat (limited to 'src/socket.h')
-rw-r--r-- | src/socket.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/socket.h b/src/socket.h index d0d85af..70dc7fe 100644 --- a/src/socket.h +++ b/src/socket.h @@ -36,10 +36,12 @@ #include <sys/socket.h> #include <arpa/inet.h> +#include "error.h" + class Socket { public: - Socket(); - Socket(u_short port); + Socket(Error *_err = NULL); + Socket(u_short port, Error *_err = NULL); ~Socket(); Socket slisten(); int sconnect(char *ip); @@ -50,6 +52,7 @@ public: bool connected; private: + Error *error; int err; }; |