]> git.tdb.fi Git - libs/net.git/blobdiff - source/http/client.h
Add a dynamic receiver class for more flexible packet handling
[libs/net.git] / source / http / client.h
index d79389a71d09bce9761243a56f255d019a2ddf97..b1f097d8852a4517c501a7d996ee077a97e753fc 100644 (file)
@@ -5,6 +5,7 @@
 #include <string>
 #include <sigc++/signal.h>
 #include <msp/io/eventdispatcher.h>
+#include <msp/net/mspnet_api.h>
 #include <msp/net/resolve.h>
 #include <msp/net/streamsocket.h>
 
@@ -14,7 +15,7 @@ namespace Http {
 class Request;
 class Response;
 
-class Client
+class MSPNET_API Client
 {
 public:
        sigc::signal<void, const Response &> signal_response_complete;
@@ -41,8 +42,6 @@ private:
        std::unique_ptr<Response> response;
        std::string in_buf;
 
-       Client(const Client &);
-       Client &operator=(const Client &);
 public:
        ~Client();