Delete copy constructor + copy assignment in tcp_socket

This commit is contained in:
Peter Conrad 2019-09-16 14:44:55 +02:00
parent 7b98c69c3b
commit 2b3611fa95

View file

@ -12,7 +12,9 @@ namespace fc {
{
public:
tcp_socket();
tcp_socket( tcp_socket& copy ) = delete;
~tcp_socket();
tcp_socket& operator=( tcp_socket& copy ) = delete;
void connect_to( const fc::ip::endpoint& remote_endpoint );
void bind( const fc::ip::endpoint& local_endpoint );