summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/NetworkProxy.cpp
diff options
context:
space:
mode:
authorJoe George <joe@zeroc.com>2017-05-02 13:58:41 -0400
committerJoe George <joe@zeroc.com>2017-05-02 15:42:34 -0400
commitcd472ddf8bd8a9c2bcfc80e988e6db450ea7dbf9 (patch)
tree5dbc0bfc43e2c195ab7e7d819e1914611f943f1d /cpp/src/Ice/NetworkProxy.cpp
parentRemoved trailing whitespace generated by slice2js (diff)
downloadice-cd472ddf8bd8a9c2bcfc80e988e6db450ea7dbf9.tar.bz2
ice-cd472ddf8bd8a9c2bcfc80e988e6db450ea7dbf9.tar.xz
ice-cd472ddf8bd8a9c2bcfc80e988e6db450ea7dbf9.zip
Remove trailing whitespace
Diffstat (limited to 'cpp/src/Ice/NetworkProxy.cpp')
-rw-r--r--cpp/src/Ice/NetworkProxy.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/src/Ice/NetworkProxy.cpp b/cpp/src/Ice/NetworkProxy.cpp
index ee90a907e59..1eedf5ee4fe 100644
--- a/cpp/src/Ice/NetworkProxy.cpp
+++ b/cpp/src/Ice/NetworkProxy.cpp
@@ -124,7 +124,7 @@ SOCKSNetworkProxy::beginWrite(const Address& addr, Buffer& buf)
SocketOperation
SOCKSNetworkProxy::endWrite(Buffer& buf)
{
- // Once the request is sent, read the response
+ // Once the request is sent, read the response
return buf.i != buf.b.end() ? SocketOperationWrite : SocketOperationRead;
}
@@ -190,14 +190,14 @@ SOCKSNetworkProxy::getProtocolSupport() const
return EnableIPv4;
}
-HTTPNetworkProxy::HTTPNetworkProxy(const string& host, int port) :
+HTTPNetworkProxy::HTTPNetworkProxy(const string& host, int port) :
_host(host), _port(port), _protocol(EnableBoth)
{
assert(!host.empty());
memset(&_address, 0, sizeof(_address));
}
-HTTPNetworkProxy::HTTPNetworkProxy(const Address& addr, ProtocolSupport protocol) :
+HTTPNetworkProxy::HTTPNetworkProxy(const Address& addr, ProtocolSupport protocol) :
_port(0), _address(addr), _protocol(protocol)
{
}
@@ -219,7 +219,7 @@ HTTPNetworkProxy::beginWrite(const Address& addr, Buffer& buf)
SocketOperation
HTTPNetworkProxy::endWrite(Buffer& buf)
{
- // Once the request is sent, read the response
+ // Once the request is sent, read the response
return buf.i != buf.b.end() ? SocketOperationWrite : SocketOperationRead;
}
@@ -247,7 +247,7 @@ HTTPNetworkProxy::endRead(Buffer& buf)
// Read one more byte, we can't easily read bytes in advance
// since the transport implenentation might be be able to read
// the data from the memory instead of the socket. This is for
- // instance the case with the OpenSSL transport (or we would
+ // instance the case with the OpenSSL transport (or we would
// have to use a buffering BIO).
//
buf.b.resize(buf.b.size() + 1);
@@ -325,6 +325,6 @@ IceInternal::createNetworkProxy(const Ice::PropertiesPtr& properties, ProtocolSu
return new HTTPNetworkProxy(proxyHost, properties->getPropertyAsIntWithDefault("Ice.HTTPProxyPort", 1080));
#endif
}
-
+
return 0;
}