Skip to content

Commit

Permalink
impl
Browse files Browse the repository at this point in the history
  • Loading branch information
Foo committed Mar 23, 2024
1 parent 21742dd commit 8430831
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/src/udp/UdpSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ UdpConnected<true> UdpBlocking::connect(const Address &remote_address) {
MinimalSocket::connect(getHandler().accessId(), remote_address);
}
this->transfer(result);
return std::move(result);
return result;
}

UdpConnected<true> UdpBlocking::connect(std::string *initial_message) {
Expand Down Expand Up @@ -78,7 +78,7 @@ UdpConnected<false> UdpNonBlocking::connect(const Address &remote_address) {
MinimalSocket::connect(getHandler().accessId(), remote_address);
}
this->transfer(result);
return std::move(result);
return result;
}

std::optional<UdpConnected<false>>
Expand Down Expand Up @@ -125,14 +125,14 @@ Udp<true> UdpConnectedBlocking::disconnect() {
resetHandler();
Udp<true> result(getPortToBind(), getRemoteAddress().getFamily());
result.open();
return std::move(result);
return result;
}

Udp<false> UdpConnectedNonBlocking::disconnect() {
resetHandler();
Udp<false> result(getPortToBind(), getRemoteAddress().getFamily());
result.open();
return std::move(result);
return result;
}

UdpConnected<true>
Expand Down

0 comments on commit 8430831

Please sign in to comment.