diff options
author | 2012-10-16 17:40:02 -0400 | |
---|---|---|
committer | 2012-10-16 17:40:02 -0400 | |
commit | be3b1259b6a806c11a4ca378a0bad210b12e4182 (patch) | |
tree | d373d25ef0b53ca0acb6e7c2757326e4c95cfe19 | |
parent | fffbf17f570a65c411f7b52fb032095f69632a46 (diff) |
Make sendto() non-blocking
-rw-r--r-- | src/network/network.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network.cc b/src/network/network.cc index 782f78e..df78362 100644 --- a/src/network/network.cc +++ b/src/network/network.cc @@ -352,7 +352,7 @@ void Connection::send( string s ) string p = px.tostring( &session ); - ssize_t bytes_sent = sendto( sock(), p.data(), p.size(), 0, + ssize_t bytes_sent = sendto( sock(), p.data(), p.size(), MSG_DONTWAIT, (sockaddr *)&remote_addr, sizeof( remote_addr ) ); if ( bytes_sent == static_cast<ssize_t>( p.size() ) ) { |