mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-20 12:36:17 +02:00
use asio socket::native_handle instead of native
This commit is contained in:
parent
ff455df0e0
commit
9561a8e92b
3 changed files with 9 additions and 9 deletions
|
@ -341,8 +341,8 @@ void StreamServer::handleAccept(socket_ptr socket)
|
|||
struct timeval tv;
|
||||
tv.tv_sec = 5;
|
||||
tv.tv_usec = 0;
|
||||
setsockopt(socket->native(), SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv));
|
||||
setsockopt(socket->native(), SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(tv));
|
||||
setsockopt(socket->native_handle(), SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv));
|
||||
setsockopt(socket->native_handle(), SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(tv));
|
||||
logS(kLogNotice) << "StreamServer::NewConnection: " << socket->remote_endpoint().address().to_string() << endl;
|
||||
shared_ptr<StreamSession> session = make_shared<StreamSession>(this, socket);
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue