diff options
| author | Vincent Richard <[email protected]> | 2009-11-30 14:04:15 +0100 |
|---|---|---|
| committer | Vincent Richard <[email protected]> | 2009-11-30 14:04:15 +0100 |
| commit | 5d8282568759f1e7c33537153f1ac0f190d64888 (patch) | |
| tree | 14ac69ed9aa177668c4366f7d3c7fe4f58af32b7 /src/platforms/windows/windowsSocket.cpp | |
| parent | Quote mailbox name instead of encoding it whenever it's possible. (diff) | |
| download | vmime-5d8282568759f1e7c33537153f1ac0f190d64888.tar.gz vmime-5d8282568759f1e7c33537153f1ac0f190d64888.zip | |
Added block size on sockets to allow different buffer size for SSL.
Diffstat (limited to 'src/platforms/windows/windowsSocket.cpp')
| -rw-r--r-- | src/platforms/windows/windowsSocket.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/platforms/windows/windowsSocket.cpp b/src/platforms/windows/windowsSocket.cpp index 8a425836..3ff9ad50 100644 --- a/src/platforms/windows/windowsSocket.cpp +++ b/src/platforms/windows/windowsSocket.cpp @@ -121,6 +121,12 @@ void windowsSocket::disconnect() } +windowsSocket::size_type windowsSocket::getBlockSize() const +{ + return 16384; // 16 KB +} + + void windowsSocket::receive(vmime::string& buffer) { int ret = ::recv(m_desc, m_buffer, sizeof(m_buffer), 0); @@ -137,7 +143,7 @@ void windowsSocket::receive(vmime::string& buffer) } -int windowsSocket::receiveRaw(char* buffer, const int count) +windowsSocket::size_type windowsSocket::receiveRaw(char* buffer, const size_type count) { int ret = ::recv(m_desc, buffer, count, 0); @@ -159,7 +165,7 @@ void windowsSocket::send(const vmime::string& buffer) } -void windowsSocket::sendRaw(const char* buffer, const int count) +void windowsSocket::sendRaw(const char* buffer, const size_type count) { ::send(m_desc, buffer, count, 0); } |
