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:
parent
cfda0f969e
commit
0c7d37a8e3
@ -83,6 +83,16 @@ namespace fr
|
||||
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.
|
||||
*
|
||||
|
||||
@ -67,16 +67,6 @@ public:
|
||||
*/
|
||||
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.
|
||||
*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user