summaryrefslogtreecommitdiff
path: root/src/socket.h
diff options
context:
space:
mode:
authordeva <deva>2005-03-29 20:07:22 +0000
committerdeva <deva>2005-03-29 20:07:22 +0000
commit789ed99ffdeae638e9191ca99272e536f36f6934 (patch)
tree29c884d1a6838cbdfc46feb6fb81da7a003f5eec /src/socket.h
parent8baab8060621a4d219b84b14677990047ff0bf26 (diff)
Added a lot of error detection stuff to the camera, player, encoder and decoder objects.
Diffstat (limited to 'src/socket.h')
-rw-r--r--src/socket.h7
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;
};