Added function stubs to Socket in unix

This commit is contained in:
Micke Prag 2010-10-08 12:28:07 +00:00
parent 2c14c779af
commit b806913cea
2 changed files with 26 additions and 0 deletions

View file

@ -23,6 +23,9 @@ IF (APPLE)
#### Mac OS X #### #### Mac OS X ####
SET( telldus-common_TARGET TelldusCommon ) SET( telldus-common_TARGET TelldusCommon )
ADD_DEFINITIONS( -D_MACOSX ) ADD_DEFINITIONS( -D_MACOSX )
LIST(APPEND telldus-common_SRCS
Socket_unix.cpp
)
ELSEIF (WIN32) ELSEIF (WIN32)
#### Windows #### #### Windows ####
ADD_DEFINITIONS( -DUNICODE ) ADD_DEFINITIONS( -DUNICODE )
@ -36,6 +39,9 @@ ELSE (APPLE)
#### Linux #### #### Linux ####
SET( telldus-common_TARGET telldus-common ) SET( telldus-common_TARGET telldus-common )
ADD_DEFINITIONS( -D_LINUX ) ADD_DEFINITIONS( -D_LINUX )
LIST(APPEND telldus-common_SRCS
Socket_unix.cpp
)
ENDIF (APPLE) ENDIF (APPLE)

View file

@ -0,0 +1,20 @@
#include "Socket.h"
using namespace TelldusCore;
class Socket::PrivateData {
public:
};
Socket::Socket(SOCKET_T hPipe)
{
d = new PrivateData;
}
Socket::~Socket(void){
delete d;
}
std::wstring Socket::read() {
return L"";
}