src/Configuration.h
branchv_0
changeset 7 e6f005f3edfe
parent 5 e57e2a2798b2
child 8 3e17086fffea
equal deleted inserted replaced
6:f0c51bc4d164 7:e6f005f3edfe
    26 
    26 
    27 namespace relpipe {
    27 namespace relpipe {
    28 namespace out {
    28 namespace out {
    29 namespace socket {
    29 namespace socket {
    30 
    30 
    31 namespace options {
       
    32 static const char OPTION_PROTOCOL[] = "protocol";
       
    33 static const char OPTION_ROLE[] = "role";
       
    34 static const char OPTION_MODE[] = "mode";
       
    35 static const char OPTION_HOST[] = "host";
       
    36 static const char OPTION_PORT[] = "port";
       
    37 static const char OPTION_PATH[] = "path";
       
    38 
       
    39 static const char PROTOCOL_TCP[] = "tcp";
       
    40 static const char PROTOCOL_UDP[] = "udp";
       
    41 static const char PROTOCOL_UDS[] = "uds";
       
    42 static const char PROTOCOL_SCTP[] = "sctp";
       
    43 
       
    44 static const char ROLE_CLIENT[] = "client";
       
    45 static const char ROLE_SERVER[] = "server";
       
    46 
       
    47 static const char MODE_STREAM[] = "stream";
       
    48 static const char MODE_DATAGRAM[] = "datagram";
       
    49 }
       
    50 
    31 
    51 class Configuration {
    32 class Configuration {
    52 public:
    33 public:
    53 
    34 
    54 	class SocketOption {
    35 	class SocketOption {