aboutsummaryrefslogtreecommitdiffstats
path: root/libtransport/src/implementation
diff options
context:
space:
mode:
Diffstat (limited to 'libtransport/src/implementation')
-rw-r--r--libtransport/src/implementation/socket.cc8
-rw-r--r--libtransport/src/implementation/socket.h10
2 files changed, 10 insertions, 8 deletions
diff --git a/libtransport/src/implementation/socket.cc b/libtransport/src/implementation/socket.cc
index b80fbb58c..8e9760a5d 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:
@@ -28,7 +28,7 @@ Socket::Socket(std::shared_ptr<core::Portal> &&portal)
verifier_(std::make_shared<auth::VoidVerifier>()) {}
int Socket::setSocketOption(int socket_option_key,
- hicn_format_t packet_format) {
+ hicn_packet_format_t packet_format) {
switch (socket_option_key) {
case interface::GeneralTransportOptions::PACKET_FORMAT:
packet_format_ = packet_format;
@@ -41,7 +41,7 @@ int Socket::setSocketOption(int socket_option_key,
}
int Socket::getSocketOption(int socket_option_key,
- hicn_format_t &packet_format) {
+ hicn_packet_format_t &packet_format) {
switch (socket_option_key) {
case interface::GeneralTransportOptions::PACKET_FORMAT:
packet_format = packet_format_;
@@ -54,4 +54,4 @@ int Socket::getSocketOption(int socket_option_key,
}
} // namespace implementation
-} // namespace transport \ No newline at end of file
+} // namespace transport
diff --git a/libtransport/src/implementation/socket.h b/libtransport/src/implementation/socket.h
index 3eb93cff6..55132eb75 100644
--- a/libtransport/src/implementation/socket.h
+++ b/libtransport/src/implementation/socket.h
@@ -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:
@@ -44,8 +44,10 @@ class Socket {
return portal_->getThread().getIoService();
}
- int setSocketOption(int socket_option_key, hicn_format_t packet_format);
- int getSocketOption(int socket_option_key, hicn_format_t &packet_format);
+ int setSocketOption(int socket_option_key,
+ hicn_packet_format_t packet_format);
+ int getSocketOption(int socket_option_key,
+ hicn_packet_format_t &packet_format);
int getSocketOption(int socket_option_key,
std::shared_ptr<core::Portal> &socket_option_value) {
@@ -69,7 +71,7 @@ class Socket {
protected:
std::shared_ptr<core::Portal> portal_;
bool is_async_;
- hicn_format_t packet_format_;
+ hicn_packet_format_t packet_format_;
std::shared_ptr<auth::Signer> signer_;
std::shared_ptr<auth::Verifier> verifier_;
};