Added stubs for timeout handler (#3045770).
This commit is contained in:
parent
d6a8b099ed
commit
80373e44d4
@ -38,8 +38,8 @@ namespace windows {
|
|||||||
// posixSocket
|
// posixSocket
|
||||||
//
|
//
|
||||||
|
|
||||||
windowsSocket::windowsSocket()
|
windowsSocket::windowsSocket(ref <vmime::net::timeoutHandler> th)
|
||||||
: m_desc(-1)
|
: m_timeoutHandler(th), m_desc(-1)
|
||||||
{
|
{
|
||||||
WSAData wsaData;
|
WSAData wsaData;
|
||||||
WSAStartup(MAKEWORD(1, 1), &wsaData);
|
WSAStartup(MAKEWORD(1, 1), &wsaData);
|
||||||
@ -179,9 +179,14 @@ void windowsSocket::sendRaw(const char* buffer, const size_type count)
|
|||||||
|
|
||||||
ref <vmime::net::socket> windowsSocketFactory::create()
|
ref <vmime::net::socket> windowsSocketFactory::create()
|
||||||
{
|
{
|
||||||
return vmime::create <windowsSocket>();
|
ref <vmime::net::timeoutHandler> th = NULL;
|
||||||
|
return vmime::create <windowsSocket>(th);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ref <vmime::net::socket> windowsSocketFactory::create(ref <vmime::net::timeoutHandler> th)
|
||||||
|
{
|
||||||
|
return vmime::create <windowsSocket>(th);
|
||||||
|
}
|
||||||
|
|
||||||
} // posix
|
} // posix
|
||||||
} // platforms
|
} // platforms
|
||||||
|
@ -41,6 +41,7 @@ class windowsSocket : public vmime::net::socket
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
windowsSocket();
|
windowsSocket();
|
||||||
|
windowsSocket(ref <vmime::net::timeoutHandler> th);
|
||||||
~windowsSocket();
|
~windowsSocket();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -59,6 +60,8 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
ref <vmime::net::timeoutHandler> m_timeoutHandler;
|
||||||
|
|
||||||
char m_buffer[65536];
|
char m_buffer[65536];
|
||||||
SOCKET m_desc;
|
SOCKET m_desc;
|
||||||
};
|
};
|
||||||
@ -70,6 +73,7 @@ class windowsSocketFactory : public vmime::net::socketFactory
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
ref <vmime::net::socket> create();
|
ref <vmime::net::socket> create();
|
||||||
|
ref <vmime::net::socket> create(ref <vmime::net::timeoutHandler> th);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user