Skip to content

Commit

Permalink
Avoid deprecated socket_base::non_blocking_io (#362)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mailaender authored and rtri committed Jan 31, 2018
1 parent 95779c2 commit 318c003
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rts/System/Net/UDPListener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ UDPListener::UDPListener(int port, const std::string& ip): acceptNewConnections(
const std::string err = TryBindSocket(port, &socket, ip);

if (err.empty()) {
asio::socket_base::non_blocking_io socketCommand(true);
socket->io_control(socketCommand);
socket->non_blocking(true);

mySocket = socket;
SetAcceptingConnections(true);
Expand Down

0 comments on commit 318c003

Please sign in to comment.