aboutsummaryrefslogtreecommitdiff
path: root/cast/common/channel/cast_socket.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cast/common/channel/cast_socket.cc')
-rw-r--r--cast/common/channel/cast_socket.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/cast/common/channel/cast_socket.cc b/cast/common/channel/cast_socket.cc
index 214b50a8..8a5f81af 100644
--- a/cast/common/channel/cast_socket.cc
+++ b/cast/common/channel/cast_socket.cc
@@ -9,13 +9,11 @@
#include "cast/common/channel/message_framer.h"
#include "util/logging.h"
+namespace openscreen {
namespace cast {
-namespace channel {
+using ::cast::channel::CastMessage;
using message_serialization::DeserializeResult;
-using openscreen::Error;
-using openscreen::ErrorOr;
-using openscreen::TlsConnection;
uint32_t GetNextSocketId() {
static std::atomic<uint32_t> id(1);
@@ -62,7 +60,7 @@ void CastSocket::SetClient(Client* client) {
}
std::array<uint8_t, 2> CastSocket::GetSanitizedIpAddress() {
- openscreen::IPEndpoint remote = connection_->GetRemoteEndpoint();
+ IPEndpoint remote = connection_->GetRemoteEndpoint();
std::array<uint8_t, 2> result;
uint8_t bytes[16];
if (remote.address.IsV4()) {
@@ -118,5 +116,5 @@ void CastSocket::OnRead(TlsConnection* connection, std::vector<uint8_t> block) {
client_->OnMessage(this, std::move(message_or_error.value().message));
}
-} // namespace channel
} // namespace cast
+} // namespace openscreen