Merge branch 'phoenix' of https://github.com/InvictusInnovations/fc into phoenix

This commit is contained in:
vogel76 2013-12-23 00:59:21 +01:00
commit a8686485c2
2 changed files with 6 additions and 0 deletions

View file

@ -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

View file

@ -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