Moved set_remote_address from TcpSocket to Socket

So that SSLSocket has it to. Though the SSLListener still needs to set the remote address after accepting a new connection.
This commit is contained in:
Fred Nicolson 2017-08-01 17:25:53 +01:00
parent cfda0f969e
commit 0c7d37a8e3
2 changed files with 10 additions and 10 deletions

View File

@ -83,6 +83,16 @@ namespace fr
return remote_address; return remote_address;
} }
/*!
* Sets the connections remote address.
*
* @param addr The remote address to use
*/
void set_remote_address(const std::string &addr)
{
remote_address = addr;
}
/*! /*!
* Sets the socket to blocking or non-blocking. * Sets the socket to blocking or non-blocking.
* *

View File

@ -67,16 +67,6 @@ public:
*/ */
virtual Status receive_raw(void *data, size_t buffer_size, size_t &received) override; virtual Status receive_raw(void *data, size_t buffer_size, size_t &received) override;
/*!
* Sets the connections remote address.
*
* @param addr The remote address to use
*/
void set_remote_address(const std::string &addr)
{
remote_address = addr;
}
/*! /*!
* Sets if the socket should be blocking or non-blocking. * Sets if the socket should be blocking or non-blocking.
* *