Added getPureSocket call to socket library for detecting piped/real socket difference.

This commit is contained in:
Thulinma 2014-12-07 00:20:35 +01:00
parent 06f88ef296
commit 21c083ccc1
2 changed files with 6 additions and 0 deletions

View file

@ -295,6 +295,11 @@ int Socket::Connection::getSocket() {
return -1;
}
/// Returns non-piped internal socket number.
int Socket::Connection::getPureSocket() {
return sock;
}
/// Returns a string describing the last error that occured.
/// Only reports errors if an error actually occured - returns the host address or empty string otherwise.
std::string Socket::Connection::getError() {