Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosjoserg committed May 29, 2024
1 parent 88bebcc commit bc3ff0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pf_driver/src/communication/udp_transport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ using boost::asio::ip::udp;
UDPTransport::UDPTransport(std::string address, std::string port) : Transport(address, transport_type::udp)
{
io_service_ = std::make_shared<boost::asio::io_service>();
udp::endpoint local_endpoint = local_endpoint = udp::endpoint(udp::v4(), stoi(port));
udp::endpoint local_endpoint(udp::v4(), stoi(port));

socket_ = std::make_unique<udp::socket>(*io_service_, local_endpoint);
timer_ = std::make_shared<boost::asio::deadline_timer>(*io_service_.get());
Expand Down

0 comments on commit bc3ff0a

Please sign in to comment.