Added getPureSocket call to socket library for detecting piped/real socket difference.
This commit is contained in:
parent
06f88ef296
commit
21c083ccc1
2 changed files with 6 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue