#ifndef MSP_NET_CLIENTSOCKET_H_
#define MSP_NET_CLIENTSOCKET_H_
+#include "mspnet_api.h"
#include "socket.h"
namespace Msp {
/**
ClientSockets are used for sending and receiving data over the network.
*/
-class ClientSocket: public Socket
+class MSPNET_API ClientSocket: public Socket
{
public:
/** Emitted when the socket finishes connecting. */
sigc::signal<void, const std::exception *> signal_connect_finished;
protected:
- bool connecting;
- bool connected;
- SockAddr *peer_addr;
+ bool connecting = false;
+ bool connected = false;
+ std::unique_ptr<SockAddr> peer_addr;
ClientSocket(const Private &, const SockAddr &);
ClientSocket(Family, int, int);