fixing build with wxUSE_PROTOCOL = 1 and wxUSE_SOCKETS = 0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -72,6 +72,19 @@ wxProtocol::wxProtocol()
|
|||||||
SetDefaultTimeout(60); // default timeout is 60 seconds
|
SetDefaultTimeout(60); // default timeout is 60 seconds
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void wxProtocol::SetDefaultTimeout(wxUint32 Value)
|
||||||
|
{
|
||||||
|
m_uiDefaultTimeout = Value;
|
||||||
|
#if wxUSE_SOCKETS
|
||||||
|
wxSocketBase::SetTimeout(Value); // sets it for this socket
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
wxProtocol::~wxProtocol()
|
||||||
|
{
|
||||||
|
delete m_log;
|
||||||
|
}
|
||||||
|
|
||||||
#if wxUSE_SOCKETS
|
#if wxUSE_SOCKETS
|
||||||
bool wxProtocol::Reconnect()
|
bool wxProtocol::Reconnect()
|
||||||
{
|
{
|
||||||
@@ -92,19 +105,6 @@ bool wxProtocol::Reconnect()
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxProtocol::SetDefaultTimeout(wxUint32 Value)
|
|
||||||
{
|
|
||||||
m_uiDefaultTimeout = Value;
|
|
||||||
#if wxUSE_SOCKETS
|
|
||||||
wxSocketBase::SetTimeout(Value); // sets it for this socket
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
wxProtocol::~wxProtocol()
|
|
||||||
{
|
|
||||||
delete m_log;
|
|
||||||
}
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// Read a line from socket
|
// Read a line from socket
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user