From: Guilhem Lavaux Date: Mon, 9 Aug 1999 19:14:15 +0000 (+0000) Subject: Renamed m_blocking to m_non_blocking X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/dc26b37a91938777fcd582bf06619fb1a9e04277 Renamed m_blocking to m_non_blocking git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3329 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/unix/gsocket.c b/src/unix/gsocket.c index 4521d220e8..c860fca201 100644 --- a/src/unix/gsocket.c +++ b/src/unix/gsocket.c @@ -99,7 +99,7 @@ GSocket *GSocket_new() socket->m_server = FALSE; socket->m_stream = TRUE; socket->m_gui_dependent = NULL; - socket->m_blocking = FALSE; + socket->m_non_blocking = FALSE; socket->m_timeout = 10*60*1000; /* 10 minutes * 60 sec * 1000 millisec */ @@ -291,7 +291,7 @@ GSocketError GSocket_SetServer(GSocket *sck) return GSOCK_IOERR; } - GSocket_SetNonBlocking(sck, sck->m_blocking); + GSocket_SetNonBlocking(sck, sck->m_non_blocking); GSocket_SetTimeout(sck, sck->m_timeout); return GSOCK_NOERROR; @@ -365,7 +365,7 @@ GSocketError GSocket_SetNonOriented(GSocket *sck) return GSOCK_IOERR; } - GSocket_SetNonBlocking(sck, sck->m_blocking); + GSocket_SetNonBlocking(sck, sck->m_non_blocking); GSocket_SetTimeout(sck, sck->m_timeout); return GSOCK_NOERROR; @@ -423,7 +423,7 @@ GSocketError GSocket_Connect(GSocket *sck, GSocketStream stream) /* It is not a server */ sck->m_server = FALSE; - GSocket_SetNonBlocking(sck, sck->m_blocking); + GSocket_SetNonBlocking(sck, sck->m_non_blocking); GSocket_SetTimeout(sck, sck->m_timeout); return GSOCK_NOERROR; @@ -501,7 +501,7 @@ void GSocket_SetNonBlocking(GSocket *socket, bool non_block) { assert(socket != NULL); - socket->m_blocking = non_block; + socket->m_non_blocking = non_block; if (socket->m_fd != -1) ioctl(socket->m_fd, FIONBIO, &non_block); diff --git a/src/unix/gsockunx.h b/src/unix/gsockunx.h index 34bf8a6c82..79321a2374 100644 --- a/src/unix/gsockunx.h +++ b/src/unix/gsockunx.h @@ -25,7 +25,7 @@ struct _GSocket { GAddress *m_local, *m_peer; GSocketError m_error; - bool m_blocking, m_server, m_stream, m_oriented; + bool m_non_blocking, m_server, m_stream, m_oriented; unsigned long m_timeout; /* Callbacks */