Merge branch 'phoenix' of https://github.com/InvictusInnovations/fc into phoenix
This commit is contained in:
commit
a8686485c2
2 changed files with 6 additions and 0 deletions
|
|
@ -55,6 +55,7 @@ namespace fc {
|
||||||
void close();
|
void close();
|
||||||
void accept( tcp_socket& s );
|
void accept( tcp_socket& s );
|
||||||
void listen( uint16_t port );
|
void listen( uint16_t port );
|
||||||
|
uint16_t get_port()const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// non copyable
|
// non copyable
|
||||||
|
|
|
||||||
|
|
@ -101,6 +101,11 @@ namespace fc {
|
||||||
my = new impl(port);
|
my = new impl(port);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint16_t tcp_server::get_port()const
|
||||||
|
{
|
||||||
|
return my->_accept.local_endpoint().port();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} // namespace fc
|
} // namespace fc
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue