Socket::Socket( NetworkManager& socketMrg, NetworkThread& owner ) : m_manager(socketMrg), m_owner(owner), m_socket(owner.service()), m_OutBufferSize(protocol::SEND_BUFFER_SIZE), m_OutActive(false), m_closing(true), m_Address(UNKNOWN_NETWORK_ADDRESS) { }
Socket::Socket(NetworkManager& manager, NetworkThread& owner) : manager_(manager), owner_(owner), socket_(owner.service()), outgoing_buffer_size_(protocol::SEND_BUFFER_SIZE), address_(UNKNOWN_NETWORK_ADDRESS), write_operation_(false), closed_(true) { }