summaryrefslogtreecommitdiffstats
path: root/src/libktorrent/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/libktorrent/net')
-rw-r--r--src/libktorrent/net/CMakeLists.txt13
-rw-r--r--src/libktorrent/net/portlist.h5
-rw-r--r--src/libktorrent/net/socketmonitor.h4
3 files changed, 18 insertions, 4 deletions
diff --git a/src/libktorrent/net/CMakeLists.txt b/src/libktorrent/net/CMakeLists.txt
new file mode 100644
index 0000000..27f84f8
--- /dev/null
+++ b/src/libktorrent/net/CMakeLists.txt
@@ -0,0 +1,13 @@
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/..
+)
+
+
+##### net library (static)
+
+tde_add_library( net STATIC_PIC AUTOMOC
+ SOURCES
+ address.cpp bufferedsocket.cpp circularbuffer.cpp downloadthread.cpp networkthread.cpp
+ portlist.cpp socket.cpp socketgroup.cpp socketmonitor.cpp speed.cpp uploadthread.cpp
+)
diff --git a/src/libktorrent/net/portlist.h b/src/libktorrent/net/portlist.h
index c1a6e99..e4a6976 100644
--- a/src/libktorrent/net/portlist.h
+++ b/src/libktorrent/net/portlist.h
@@ -22,6 +22,7 @@
#include <tqvaluelist.h>
#include <util/constants.h>
+#include <libktorrent_export.h>
namespace net
{
@@ -31,7 +32,7 @@ namespace net
UDP
};
- struct Port
+ struct LIBKTORRENT_EXPORT Port
{
bt::Uint16 number;
Protocol proto;
@@ -69,7 +70,7 @@ namespace net
* List of ports which are currently being used.
*
*/
- class PortList : public TQValueList<Port>
+ class LIBKTORRENT_EXPORT PortList : public TQValueList<Port>
{
PortListener* lst;
public:
diff --git a/src/libktorrent/net/socketmonitor.h b/src/libktorrent/net/socketmonitor.h
index 6fc63c1..aa2aa56 100644
--- a/src/libktorrent/net/socketmonitor.h
+++ b/src/libktorrent/net/socketmonitor.h
@@ -20,10 +20,10 @@
#ifndef NETSOCKETMONITOR_H
#define NETSOCKETMONITOR_H
-
#include <tqmutex.h>
#include <tqptrlist.h>
#include <util/constants.h>
+#include <libktorrent_export.h>
namespace net
@@ -40,7 +40,7 @@ namespace net
* Monitors all sockets for upload and download traffic.
* It uses two threads to do this.
*/
- class SocketMonitor
+ class LIBKTORRENT_EXPORT SocketMonitor
{
static SocketMonitor self;