aboutsummaryrefslogtreecommitdiffstats
path: root/libtransport/src/implementation/socket.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libtransport/src/implementation/socket.cc')
-rw-r--r--libtransport/src/implementation/socket.cc20
1 files changed, 17 insertions, 3 deletions
diff --git a/libtransport/src/implementation/socket.cc b/libtransport/src/implementation/socket.cc
index 2e21f2bc3..c554d09d3 100644
--- a/libtransport/src/implementation/socket.cc
+++ b/libtransport/src/implementation/socket.cc
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Cisco and/or its affiliates.
+ * Copyright (c) 2021-2022 Cisco and/or its affiliates.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
@@ -14,13 +14,27 @@
*/
#include <core/global_configuration.h>
+#include <hicn/transport/interfaces/socket_options_default_values.h>
#include <implementation/socket.h>
namespace transport {
namespace implementation {
Socket::Socket(std::shared_ptr<core::Portal> &&portal)
- : portal_(std::move(portal)), is_async_(false) {}
+ : portal_(std::move(portal)),
+ is_async_(false),
+ signer_(std::make_shared<auth::VoidSigner>()),
+ verifier_(std::make_shared<auth::VoidVerifier>()) {}
+
+int Socket::setSocketOption(int socket_option_key,
+ hicn_packet_format_t packet_format) {
+ return SOCKET_OPTION_NOT_SET;
+}
+
+int Socket::getSocketOption(int socket_option_key,
+ hicn_packet_format_t &packet_format) {
+ return SOCKET_OPTION_NOT_GET;
+}
} // namespace implementation
-} // namespace transport \ No newline at end of file
+} // namespace transport