--- a/src/Configuration.h Fri Jul 29 18:03:49 2022 +0200
+++ b/src/Configuration.h Sat Jul 30 00:16:40 2022 +0200
@@ -21,11 +21,33 @@
#include <relpipe/common/type/typedefs.h>
+#include "Socket.h"
+
namespace relpipe {
namespace out {
namespace socket {
+namespace options {
+static const char OPTION_PROTOCOL[] = "protocol";
+static const char OPTION_ROLE[] = "role";
+static const char OPTION_MODE[] = "mode";
+static const char OPTION_HOST[] = "host";
+static const char OPTION_PORT[] = "port";
+static const char OPTION_PATH[] = "path";
+
+static const char PROTOCOL_TCP[] = "tcp";
+static const char PROTOCOL_UDP[] = "udp";
+static const char PROTOCOL_UDS[] = "uds";
+static const char PROTOCOL_SCTP[] = "sctp";
+
+static const char ROLE_CLIENT[] = "client";
+static const char ROLE_SERVER[] = "server";
+
+static const char MODE_STREAM[] = "stream";
+static const char MODE_DATAGRAM[] = "datagram";
+}
+
class Configuration {
public:
@@ -42,7 +64,6 @@
relpipe::common::type::StringX relation = L"socket";
- relpipe::common::type::StringX connectionString = L"udp://127.0.0.1:64000";
std::vector<SocketOption> options;
virtual ~Configuration() {