src/Socket.h
branchv_0
changeset 7 e6f005f3edfe
parent 5 e57e2a2798b2
child 18 e16fa75135ad
--- a/src/Socket.h	Sat Jul 30 02:33:33 2022 +0200
+++ b/src/Socket.h	Sat Jul 30 11:33:56 2022 +0200
@@ -30,6 +30,26 @@
 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 Socket {
 public:
 	virtual ~Socket() = default;