Renamed socket_ptr type to tcp_socket