aboutsummaryrefslogtreecommitdiff
path: root/dep/src/sockets/StreamSocket.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-02-12 17:09:15 -0600
committermegamage <none@none>2009-02-12 17:09:15 -0600
commit6aee5fcbe7473a3cbac12b7e8482a7b98bef8be3 (patch)
tree91ec91d5c19eba9c2fe0e84b1c9dc7047a3de80e /dep/src/sockets/StreamSocket.cpp
parent2d2f433b4de1c35b22aaf07854fc0ee11fcb350d (diff)
parentf385747164c3fb278c92ef46fbd6c3da6590bbf0 (diff)
*Merge.
--HG-- branch : trunk
Diffstat (limited to 'dep/src/sockets/StreamSocket.cpp')
-rw-r--r--dep/src/sockets/StreamSocket.cpp70
1 files changed, 35 insertions, 35 deletions
diff --git a/dep/src/sockets/StreamSocket.cpp b/dep/src/sockets/StreamSocket.cpp
index 5c5780e3085..4412d498536 100644
--- a/dep/src/sockets/StreamSocket.cpp
+++ b/dep/src/sockets/StreamSocket.cpp
@@ -28,136 +28,136 @@ StreamSocket::~StreamSocket()
void StreamSocket::SetConnecting(bool x)
{
- if (x != m_bConnecting)
- {
- m_bConnecting = x;
- if (x)
- {
- SetTimeout( GetConnectTimeout() );
- }
- else
- {
- SetTimeout( 0 );
- }
- }
+ if (x != m_bConnecting)
+ {
+ m_bConnecting = x;
+ if (x)
+ {
+ SetTimeout( GetConnectTimeout() );
+ }
+ else
+ {
+ SetTimeout( 0 );
+ }
+ }
}
bool StreamSocket::Connecting()
{
- return m_bConnecting;
+ return m_bConnecting;
}
bool StreamSocket::Ready()
{
- if (GetSocket() != INVALID_SOCKET && !Connecting() && !CloseAndDelete())
- return true;
- return false;
+ if (GetSocket() != INVALID_SOCKET && !Connecting() && !CloseAndDelete())
+ return true;
+ return false;
}
void StreamSocket::SetConnectTimeout(int x)
{
- m_connect_timeout = x;
+ m_connect_timeout = x;
}
int StreamSocket::GetConnectTimeout()
{
- return m_connect_timeout;
+ return m_connect_timeout;
}
void StreamSocket::SetFlushBeforeClose(bool x)
{
- m_flush_before_close = x;
+ m_flush_before_close = x;
}
bool StreamSocket::GetFlushBeforeClose()
{
- return m_flush_before_close;
+ return m_flush_before_close;
}
int StreamSocket::GetConnectionRetry()
{
- return m_connection_retry;
+ return m_connection_retry;
}
void StreamSocket::SetConnectionRetry(int x)
{
- m_connection_retry = x;
+ m_connection_retry = x;
}
int StreamSocket::GetConnectionRetries()
{
- return m_retries;
+ return m_retries;
}
void StreamSocket::IncreaseConnectionRetries()
{
- m_retries++;
+ m_retries++;
}
void StreamSocket::ResetConnectionRetries()
{
- m_retries = 0;
+ m_retries = 0;
}
void StreamSocket::SetCallOnConnect(bool x)
{
- Handler().AddList(GetSocket(), LIST_CALLONCONNECT, x);
- m_call_on_connect = x;
+ Handler().AddList(GetSocket(), LIST_CALLONCONNECT, x);
+ m_call_on_connect = x;
}
bool StreamSocket::CallOnConnect()
{
- return m_call_on_connect;
+ return m_call_on_connect;
}
void StreamSocket::SetRetryClientConnect(bool x)
{
- Handler().AddList(GetSocket(), LIST_RETRY, x);
- m_b_retry_connect = x;
+ Handler().AddList(GetSocket(), LIST_RETRY, x);
+ m_b_retry_connect = x;
}
bool StreamSocket::RetryClientConnect()
{
- return m_b_retry_connect;
+ return m_b_retry_connect;
}
void StreamSocket::SetLineProtocol(bool x)
{
- m_line_protocol = x;
+ m_line_protocol = x;
}
bool StreamSocket::LineProtocol()
{
- return m_line_protocol;
+ return m_line_protocol;
}
void StreamSocket::SetShutdown(int x)
{
- m_shutdown = x;
+ m_shutdown = x;
}
int StreamSocket::GetShutdown()
{
- return m_shutdown;
+ return m_shutdown;
}