hide internal make_udp and make_tcp functions

This commit is contained in:
Arvid Norberg 2019-01-22 10:41:54 +01:00 committed by Arvid Norberg
parent bfc579e61f
commit 2bf42f2afd
1 changed files with 2 additions and 0 deletions

View File

@ -93,9 +93,11 @@ namespace libtorrent {
using null_buffers = boost::asio::null_buffers;
#endif
// internal
inline udp::endpoint make_udp(tcp::endpoint const ep)
{ return {ep.address(), ep.port()}; }
// internal
inline tcp::endpoint make_tcp(udp::endpoint const ep)
{ return {ep.address(), ep.port()}; }