diff options
author | Vincent Richard <[email protected]> | 2005-07-12 22:28:02 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2005-07-12 22:28:02 +0000 |
commit | 681297e10b666e13cc463f6fbb16236f36c3266c (patch) | |
tree | 5d2392e2283232ed3475cd9c69e22897b03e8a97 /src/platforms/windows/windowsSocket.cpp | |
parent | Added contentHandler::extractRaw(). (diff) | |
download | vmime-681297e10b666e13cc463f6fbb16236f36c3266c.tar.gz vmime-681297e10b666e13cc463f6fbb16236f36c3266c.zip |
Reference counting and smart pointers.
Diffstat (limited to 'src/platforms/windows/windowsSocket.cpp')
-rw-r--r-- | src/platforms/windows/windowsSocket.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/platforms/windows/windowsSocket.cpp b/src/platforms/windows/windowsSocket.cpp index a572a271..b325eedd 100644 --- a/src/platforms/windows/windowsSocket.cpp +++ b/src/platforms/windows/windowsSocket.cpp @@ -77,7 +77,7 @@ void windowsSocket::connect(const vmime::string& address, const vmime::port_t po // Error: cannot resolve address throw vmime::exceptions::connection_error("Cannot resolve address."); } - + memcpy(reinterpret_cast <char*>(&addr.sin_addr), hostInfo->h_addr, hostInfo->h_length); } @@ -167,9 +167,9 @@ void windowsSocket::sendRaw(const char* buffer, const int count) // posixSocketFactory // -vmime::messaging::socket* windowsSocketFactory::create() +ref <vmime::messaging::socket> windowsSocketFactory::create() { - return new windowsSocket(); + return vmime::create <windowsSocket>(); } |