Removed extra spaces in HTTP TS output, fixed socket class to work with unidirectional files
This commit is contained in:
parent
6b962aae9f
commit
d413866911
2 changed files with 2 additions and 2 deletions
|
@ -400,7 +400,7 @@ Socket::Connection::Connection(std::string host, int port, bool nonblock){
|
||||||
/// and when the socket is closed manually.
|
/// and when the socket is closed manually.
|
||||||
/// \returns True if socket is connected, false otherwise.
|
/// \returns True if socket is connected, false otherwise.
|
||||||
bool Socket::Connection::connected() const{
|
bool Socket::Connection::connected() const{
|
||||||
return (sock >= 0) || ((pipes[0] >= 0) && (pipes[1] >= 0));
|
return (sock >= 0) || ((pipes[0] >= 0) || (pipes[1] >= 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns the time this socket has been connected.
|
/// Returns the time this socket has been connected.
|
||||||
|
|
Loading…
Add table
Reference in a new issue