# ConnectionProvider.hpp

This File On Github
Ask A Question

API: latest
module: oatpp
#include "oatpp/network/ConnectionProvider.hpp"

# ConnectionProvider

Abstract ConnectionProvider.
Basically it returns whatever stream (oatpp::data::stream::IOStream).
User of ConnectionProvider should care about IOStream only. All other properties are optional.

namespace oatpp { namespace network { 
  class ConnectionProvider : public provider::Provider<data::stream::IOStream> {}
}}

# Fields

Type Name Summary
const char* const PROPERTY_HOST Predefined property key for HOST.
const char* const PROPERTY_PORT Predefined property key for PORT.

# ConnectionProvider::PROPERTY_HOST

Predefined property key for HOST.

static const char* const PROPERTY_HOST

# ConnectionProvider::PROPERTY_PORT

Predefined property key for PORT.

static const char* const PROPERTY_PORT

# ServerConnectionProvider

No properties here. It is just a logical division

namespace oatpp { namespace network { 
  class ServerConnectionProvider : public ConnectionProvider {}
}}

# ClientConnectionProvider

No properties here. It is just a logical division

namespace oatpp { namespace network { 
  class ClientConnectionProvider : public ConnectionProvider {}
}}